/**
 * Feminism Magazine - Additional Styles
 * Pagination, Breadcrumbs, Cards, Sidebar, Comments
 */

/* ==============================================
   PAGINATION
   ============================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination .page-numbers,
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination a:hover {
    background: #f5f5f5;
    border-color: #c85a7a;
    color: #c85a7a;
}

.pagination .page-numbers.current,
.pagination span.current {
    background: #c85a7a;
    color: #fff;
    border-color: #c85a7a;
}

.pagination .prev,
.pagination .next {
    font-size: 1.2rem;
}

.pagination .dots {
    background: transparent;
    border: none;
}

/* ==============================================
   BREADCRUMBS
   ============================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #666;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #c85a7a;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #a84464;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #ccc;
}

.breadcrumb [itemprop="itemListElement"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==============================================
   CARDS
   ============================================== */
.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0e0e0;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f9f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: #c85a7a;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.card-badge--secondary {
    background: #8B5CF6;
}

.card-badge--accent {
    background: #e8a87c;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    display: inline-block;
    color: #c85a7a;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: #3d2c2e;
    text-decoration: none;
}

.card-title a:hover {
    color: #c85a7a;
}

.card-excerpt {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #999;
    margin-top: auto;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c85a7a 0%, #e8a87c 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
}

/* Card Grid */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .card-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .card-grid--2,
    .card-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* Horizontal Card */
.card--horizontal {
    flex-direction: row;
}

.card--horizontal .card-image {
    width: 40%;
    aspect-ratio: auto;
    min-height: 200px;
}

.card--horizontal .card-content {
    width: 60%;
}

@media (max-width: 768px) {
    .card--horizontal {
        flex-direction: column;
    }
    
    .card--horizontal .card-image,
    .card--horizontal .card-content {
        width: 100%;
    }
}

/* ==============================================
   SIDEBAR
   ============================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #f0e0e0;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0e0e0;
    color: #3d2c2e;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0e0e0;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item-image {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-item-content {
    flex: 1;
}

.sidebar-item-title {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.sidebar-item-title a {
    color: #3d2c2e;
    text-decoration: none;
}

.sidebar-item-title a:hover {
    color: #c85a7a;
}

.sidebar-item-meta {
    font-size: 0.8125rem;
    color: #999;
}

/* Trending List */
.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: trending;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0e0e0;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e892a9;
    line-height: 1;
    min-width: 24px;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    display: inline-block;
    background: #f9f5f5;
    color: #666;
    padding: 0.375rem 0.875rem;
    border-radius: 99px;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
}

.article-tag:hover {
    background: #c85a7a;
    color: #fff;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #c85a7a 0%, #e8a87c 100%);
    color: #fff;
}

.newsletter-widget .sidebar-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.newsletter-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #3d2c2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: #2a1e20;
}

/* ==============================================
   COMMENTS
   ============================================== */
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list > li {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0e0e0;
}

.comment-list > li:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-author .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: #3d2c2e;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.8125rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.comment-metadata a {
    color: #999;
}

.comment-content {
    color: #666;
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #c85a7a;
    font-size: 0.875rem;
    font-weight: 500;
}

.comment-reply-link:hover {
    color: #a84464;
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9f5f5;
    border-radius: 16px;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #3d2c2e;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #c85a7a;
    box-shadow: 0 0 0 3px rgba(200,90,122,0.1);
}

.comment-form .required {
    color: #d9534f;
}

.comment-form .form-submit {
    margin-bottom: 0;
}

/* ==============================================
   HOROSCOPE PAGE
   ============================================== */
.horoscope-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.horoscope-card {
    text-align: center;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
}

.horoscope-card:hover,
.horoscope-card.active {
    border-color: #c85a7a;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.horoscope-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.horoscope-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #3d2c2e;
}

.horoscope-dates {
    font-size: 0.75rem;
    color: #999;
}

.horoscope-periods {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .horoscope-zodiac-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .horoscope-zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Horoscope Detail */
.horoscope-detail {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #f0e0e0;
}

.horoscope-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0e0e0;
}

.horoscope-detail-icon {
    font-size: 3.5rem;
}

.horoscope-detail-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.horoscope-detail-dates {
    color: #999;
    font-size: 0.9375rem;
}

.horoscope-stats {
    margin: 2rem 0;
}

.horoscope-stat {
    margin-bottom: 1rem;
}

.horoscope-stat-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.horoscope-stat-bar {
    height: 8px;
    background: #f0e0e0;
    border-radius: 99px;
    overflow: hidden;
}

.horoscope-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #c85a7a 0%, #e8a87c 100%);
    border-radius: 99px;
    transition: width 0.5s ease;
}

.horoscope-lucky {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9f5f5;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.horoscope-lucky-label {
    font-weight: 500;
    color: #666;
}

.horoscope-lucky-numbers {
    font-weight: 600;
    color: #c85a7a;
    font-size: 1.125rem;
}

/* ==============================================
   SEARCH MODAL
   ============================================== */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-inner {
    width: 100%;
    max-width: 700px;
    margin: 0 1.5rem;
    position: relative;
}

.search-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.25rem 5rem 1.25rem 1.5rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 12px;
    background: #fff;
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #c85a7a;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit:hover {
    background: #a84464;
}

/* ==============================================
   MOBILE MENU
   ============================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: #3d2c2e;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #f9f5f5;
    color: #c85a7a;
}

/* ==============================================
   HEADER FIXES
   ============================================== */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    color: #c85a7a;
}

.logo span:last-child {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #3d2c2e;
}

.nav-main {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #666;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #c85a7a;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f9f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #c85a7a;
    color: #fff;
}

.menu-toggle {
    display: none;
}

@media (max-width: 992px) {
    .nav-main {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .desktop-only {
        display: none;
    }
}

/* ==============================================
   LAYOUT
   ============================================== */
.layout-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

@media (max-width: 992px) {
    .layout-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
}

/* ==============================================
   SECTIONS
   ============================================== */
.section {
    padding: 4rem 0;
}

.section--small {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3d2c2e;
}

.section-link {
    color: #c85a7a;
    font-weight: 500;
    text-decoration: none;
}

.section-link:hover {
    text-decoration: underline;
}

/* ==============================================
   ARTICLE STYLES
   ============================================== */
.article-header {
    padding: 4rem 0 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    display: inline-block;
    background: #c85a7a;
    color: #fff;
    padding: 0.375rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-decoration: none;
}

.article-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #3d2c2e;
}

.article-excerpt {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #999;
    font-size: 0.9375rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c85a7a 0%, #e8a87c 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-author-info {
    text-align: left;
}

.article-author-name {
    display: block;
    font-weight: 600;
    color: #3d2c2e;
}

.article-author-role {
    display: block;
    font-size: 0.8125rem;
    color: #999;
}

.article-featured {
    margin: 2rem 0;
}

.article-featured-image {
    border-radius: 16px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #3d2c2e;
    margin: 2.5rem 0 1rem;
}

.entry-content img {
    border-radius: 12px;
    margin: 2rem 0;
}

.entry-content blockquote {
    border-left: 4px solid #c85a7a;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

/* ==============================================
   ARTICLE SHARE
   ============================================== */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #f0e0e0;
    border-bottom: 1px solid #f0e0e0;
}

.article-share-label {
    font-weight: 500;
    color: #3d2c2e;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f9f5f5;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #c85a7a;
    color: #fff;
    transform: translateY(-2px);
}

/* ==============================================
   AUTHOR BOX
   ============================================== */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9f5f5;
    border-radius: 16px;
    margin-top: 2.5rem;
}

.author-box-avatar .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.author-box-content {
    flex: 1;
}

.author-box-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #3d2c2e;
}

.author-box-role {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.author-box-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-box-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-box-link {
    color: #c85a7a;
    font-weight: 500;
    text-decoration: none;
}

.author-box-link:hover {
    text-decoration: underline;
}

.author-box-separator {
    color: #ccc;
}

@media (max-width: 576px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-box-links {
        justify-content: center;
    }
}

/* ==============================================
   RELATED ARTICLES
   ============================================== */
.related-articles {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid #f0e0e0;
}

/* ==============================================
   404 PAGE
   ============================================== */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 .page-title {
    font-size: 8rem;
    font-weight: 700;
    color: #c85a7a;
    line-height: 1;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .error-404 .page-title {
        font-size: 5rem;
    }
}

/* ==============================================
   CATEGORY NAV
   ============================================== */
.category-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: #fff;
    color: #666;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.category-btn:hover,
.category-btn.active {
    background: #c85a7a;
    color: #fff;
    border-color: #c85a7a;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.hero-main {
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-main-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-main-content {
    position: relative;
    padding: 2rem;
    color: #fff;
}

.hero-main-title {
    font-size: 1.75rem;
    margin: 1rem 0;
}

.hero-main-title a {
    color: #fff;
    text-decoration: none;
}

.hero-main-title a:hover {
    color: #e8a87c;
}

.hero-main-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-sidebar-item {
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-sidebar-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-sidebar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}

.hero-sidebar-content {
    position: relative;
    padding: 4rem 1.5rem 1.5rem;
    color: #fff;
}

.hero-sidebar-title {
    font-size: 1.125rem;
    margin: 0.75rem 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.hero-sidebar-title a {
    color: #fff;
    text-decoration: none;
}

.hero-sidebar-title a:hover {
    color: #e8a87c;
}

.hero-sidebar-meta {
    font-size: 0.8125rem;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-sidebar {
        flex-direction: row;
    }
    
    .hero-sidebar-item {
        flex: 1;
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-sidebar {
        flex-direction: column;
    }
    
    .hero-main {
        min-height: 350px;
    }
}

/* ==============================================
   ARCHIVE HEADER
   ============================================== */
.archive-header-hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #c85a7a 0%, #e8a87c 100%);
    border-radius: 16px;
    color: #fff;
    margin: 2rem 0;
}

.archive-hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.archive-hero-desc {
    opacity: 0.9;
    font-size: 1.0625rem;
}

/* ==============================================
   ARCHIVE TOOLBAR
   ============================================== */
.archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0e0e0;
    margin-bottom: 1.5rem;
}

.archive-count {
    font-weight: 500;
    color: #666;
}

.archive-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.archive-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.875rem;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
}

.view-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
    background: #c85a7a;
    border-color: #c85a7a;
    color: #fff;
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn--primary {
    background: #c85a7a;
    color: #fff;
}

.btn--primary:hover {
    background: #a84464;
    color: #fff;
}

.btn--secondary {
    background: #f9f5f5;
    color: #666;
}

.btn--secondary:hover {
    background: #f0e0e0;
    color: #3d2c2e;
}

.btn--white {
    background: #fff;
    color: #c85a7a;
}

.btn--white:hover {
    background: #f9f5f5;
}

.btn--white.active {
    background: #3d2c2e;
    color: #fff;
}

.btn--icon {
    width: 44px;
    height: 44px;
    padding: 0;
}

/* ==============================================
   SKIP LINK
   ============================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #c85a7a;
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    top: 0;
}

/* ==============================================
   SCREEN READER TEXT
   ============================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #c85a7a;
    outline-offset: 2px;
}


/* ==============================================
   MOBILE-FIRST RESPONSIVE ENHANCEMENTS
   ============================================== */

/* ==============================================
   MOBILE UTILITY CLASSES
   ============================================== */

/* Hide on mobile (show on tablet+) */
@media (max-width: 575px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
    .show-mobile-flex { display: flex !important; }
    .show-mobile-inline { display: inline !important; }
}

/* Show on mobile only (hide on tablet+) */
@media (min-width: 576px) {
    .mobile-only { display: none !important; }
}

/* Touch device utilities */
@media (hover: none) {
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    .mobile-nav-link:hover {
        transform: none;
    }
    
    .card:hover .card-image img {
        transform: none;
    }
    
    /* Add active state feedback */
    .touch-active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* ==============================================
   MOBILE FORM IMPROVEMENTS
   ============================================== */

/* Prevent zoom on iOS inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
    font-size: 16px; /* Minimum to prevent zoom */
}

@media (min-width: 400px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 1rem;
    }
}

/* ==============================================
   MOBILE SCROLL OPTIMIZATIONS
   ============================================== */

/* Smooth scrolling with momentum */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Momentum scrolling for containers */
.scroll-container,
.mobile-menu,
.search-modal {
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ==============================================
   MOBILE IMAGE OPTIMIZATIONS
   ============================================== */

/* Lazy image loading fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
    opacity: 1;
}

/* Prevent layout shift for images */
img {
    max-width: 100%;
    height: auto;
}

/* ==============================================
   MOBILE ANIMATION REDUCTION
   ============================================== */

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .card:hover,
    .card__image img,
    .btn {
        transform: none !important;
    }
}

/* Low bandwidth mode */
.low-bandwidth *,
.save-data * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
}

/* ==============================================
   MOBILE SAFE AREA SUPPORT
   ============================================== */

/* iOS safe area insets */
@supports (padding: max(0px)) {
    .safe-area-top {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
    
    .safe-area-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .safe-area-left {
        padding-left: max(1rem, env(safe-area-inset-left));
    }
    
    .safe-area-right {
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* ==============================================
   MOBILE BREAKPOINT REFINEMENTS
   ============================================== */

/* Extra Small devices (phones, 320px and up) */
@media (min-width: 320px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Small devices (large phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .card-grid--2,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .horoscope-zodiac-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .hero-sidebar {
        flex-direction: column;
    }
    
    .card-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .posts-grid:not(.posts-grid--featured) {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .nav-main {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .layout-container {
        grid-template-columns: 1fr 340px;
    }
    
    .sidebar {
        display: flex;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* ==============================================
   MOBILE PRINT STYLES
   ============================================== */

@media print {
    .mobile-menu,
    .menu-toggle,
    .mobile-menu-overlay,
    .pwa-install-prompt,
    .ptr-indicator,
    .mobile-toast,
    .search-modal,
    .reading-progress-bar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        opacity: 0.7;
    }
}

/* ==============================================
   MOBILE DEBUG UTILITIES (Remove in production)
   ============================================== */

/* Visualize breakpoints during development */
body::before {
    content: 'XS';
    position: fixed;
    bottom: 0;
    right: 0;
    background: rgba(200, 90, 122, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    z-index: 99999;
    font-family: monospace;
}

@media (min-width: 576px) {
    body::before { content: 'SM'; }
}

@media (min-width: 768px) {
    body::before { content: 'MD'; }
}

@media (min-width: 992px) {
    body::before { content: 'LG'; }
}

@media (min-width: 1200px) {
    body::before { content: 'XL'; }
}

/* Hide debug indicator in production - uncomment when deploying */
/* body::before { display: none; } */
