/* ===================== EXTRA STYLES ===================== */
/* This file supplements style.css with component-specific overrides */

/* Custom logo sizing */
.custom-logo { max-height: 55px; width: auto; }

/* Nav sub-menus */
.main-nav ul li { position: relative; }
.main-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e293b;
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 200;
}
.main-nav ul li:hover > ul { display: block; }
.main-nav ul li ul li a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Search form styling */
.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
}
.search-form button, .search-submit {
    padding: 0.6rem 1.2rem;
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

/* Comments section */
.comment-list { list-style: none; }
.comment { padding: 1rem; border-bottom: 1px solid var(--gray-200); }
.comment-author { font-weight: 700; font-size: 0.9rem; }
.comment-meta { font-size: 0.8rem; color: var(--gray-600); }
.comment-content { margin-top: 0.5rem; font-size: 0.9rem; }
.comment-reply-link {
    font-size: 0.8rem;
    color: var(--red);
    margin-top: 0.4rem;
    display: inline-block;
}

/* WP post navigation */
.post-navigation { display: flex; justify-content: space-between; margin: 1.5rem 0; gap: 1rem; }
.nav-previous, .nav-next {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
}
.nav-next { text-align: right; }

/* Tags cloud widget */
.tagcloud a {
    display: inline-block;
    margin: 0.2rem;
    padding: 0.25rem 0.6rem;
    background: var(--gray-100);
    border-radius: 999px;
    font-size: 0.8rem !important;
    color: var(--gray-600);
    transition: all 0.2s;
}
.tagcloud a:hover { background: var(--red); color: white; }

/* Matrimonial Grid responsive */
@media (max-width: 600px) {
    .cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
    .cards-grid { grid-template-columns: 1fr; }
}

/* Print styles */
@media print {
    .site-header, .mobile-bottom-nav, .sidebar, .modal-overlay,
    .share-bar, .in-feed-ad, .top-banner-ad, .breaking-news { display: none !important; }
    .content-grid { grid-template-columns: 1fr; }
    .post-title { font-size: 1.5rem; }
}

/* Accessibility — focus rings */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--red);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 9999;
    border-radius: 0 0 var(--radius) 0;
}
.skip-to-content:focus { top: 0; }

/* Scroll to top button */
#scrollTop {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 400;
    box-shadow: var(--shadow-md);
    border: none;
}
#scrollTop.visible { opacity: 1; }
#scrollTop:hover { background: var(--red); }
