/*
Theme Name: Siyaqasha by Lutel Group
Theme URI: https://lutelgroup.com
Author: Lutel Group
Author URI: https://lutelgroup.com
Description: A high-performance WordPress theme for Google Discover, AdSense, and SEO.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: antigravity-portfolio
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
*/

/*
 * Base styles for Antigravity Portfolio
 * Developers: Add your custom CSS below or enqueue separate stylesheets in functions.php.
 */

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Layout Utilities */
.site-main {
    padding: 2rem 0;
}

/* Global Navigation Styles */
.menu-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; padding: 5px; color: #202124; line-height: 1; margin-right: 15px; }
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.main-navigation a {
    text-decoration: none;
    color: #5f6368;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.main-navigation a:hover {
    color: #1a73e8;
}

/* Post List Components */
.post-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.1);
    border: 1px solid #f1f3f4;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

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

.card-image-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.card .entry-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.card .entry-title a {
    color: inherit;
    text-decoration: none;
}

.card .entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.card .entry-excerpt {
    color: #444;
    font-size: 0.95rem;
}

/* AdSense Containers (CLS Safe) */
.ad-container {
    background: transparent;
    display: block;
    clear: both;
    width: 100%;
    margin: 4rem 0;
    padding: 0;
    min-height: 250px;
    text-align: center;
    border-radius: 8px;
}

.article-inline-ad {
    margin: 4.5rem 0;
}

.grid-ad {
    margin: 2.5rem 0;
}

/* Responsive Images globally */
img {
    max-width: 100%;
    height: auto;
}


/* NEW UI DISCOVER OVERRIDES */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #202124;
}


/* Card Visuals (Discover Style) */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.1);
    border: 1px solid #f1f3f4;
}

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

.card-image-link {
    aspect-ratio: 16 / 9;
    border-radius: 12px 12px 0 0;
}

.featured-card:first-child .card-image-link {
    border-radius: 12px 0 0 12px;
    height: 100%;
}

.card-image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.card-cat {
    color: #1a73e8; /* High CTR Accent */
}

.card-time {
    color: #5f6368;
}

.card .entry-title a {
    color: #202124;
    transition: color 0.15s ease;
}

.card:hover .entry-title a {
    color: #1a73e8;
}

/* TOC & FAQ Styles */
.toc-wrapper {
    background: #f1f3f4;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.toc-wrapper h3 { margin-top: 0; font-size: 1.25rem; color: #1a1a1a; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 0.5rem; }
.toc-list li a { color: #1a73e8; text-decoration: none; font-weight: 500; }
.toc-list li.toc-sub { margin-left: 1rem; font-size: 0.95rem; }

.faq-accordion h2 {
    cursor: pointer;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    font-size: 1.25rem;
    margin-bottom: 0;
    transition: background 0.2s;
}
.faq-accordion h2:hover { background: #f1f3f4; }
.faq-accordion h2::after {
    content: '+';
    float: right;
    color: #1a73e8;
}
.faq-accordion h2.active::after { content: '-'; }
.faq-accordion p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
    padding: 0 15px;
    margin: 0 0 1rem 0;
}

/* Inline Related Posts */
.inline-related-posts {
    background: #e8f0fe;
    border-left: 4px solid #1a73e8;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}
.inline-related-posts h4 { margin-top: 0; color: #1a73e8; }
.inline-related-posts ul { margin-bottom: 0; }
.inline-related-posts a { font-weight: 600; color: #202124; text-decoration: none; }
.inline-related-posts a:hover { text-decoration: underline; }

/* Footer Widget Grid */
.footer-widget-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-column {
    text-align: left;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column li {
    margin-bottom: 8px;
}
.footer-column a {
    text-decoration: none;
    color: #5f6368;
    transition: color 0.2s;
}
.footer-column a:hover {
    color: #1a73e8;
}
.widget-title {
    font-size: 1.1rem;
    color: #202124;
    margin-bottom: 15px;
    font-weight: 700;
}

@media screen and (max-width: 1024px) {
    .footer-widget-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 600px) {
    .footer-widget-grid { grid-template-columns: 1fr; }
}


@media screen and (max-width: 768px) {
    /* Header & Navigation Dropdown */
    .header-inner { flex-direction: row !important; min-height: 60px !important; height: auto !important; padding: 0 20px !important; justify-content: flex-end !important; align-items: center !important; flex-wrap: wrap; }
    .site-branding { order: 1; flex: 1 1 0%; margin-right: auto; }
    .site-title { font-size: 1.15rem !important; margin: 0; text-align: left; white-space: nowrap; }
    
    .main-navigation { display: contents !important; }
    
    .header-search-wrapper { order: 2; margin-left: 15px; position: static !important; }
    .menu-toggle { display: block !important; order: 3; margin-left: 15px; margin-right: 0 !important; }
    
    .main-navigation ul { 
        order: 4;
        display: none; 
        flex-direction: column; 
        flex-basis: 100%;
        width: 100%; 
        background: #fff; 
        position: static; 
        padding: 20px 0; 
        border-top: 1px solid #f1f3f4;
        box-shadow: none; 
        text-align: center;
        gap: 15px;
        margin-top: 15px;
    }
    .main-navigation ul.toggled { display: flex; }
    
    /* Fix Search Overlay scaling */
    #header-search-form { right: 0 !important; transform: none; top: 100% !important; width: 100%; max-width: 100%; z-index: 1000; }
    #header-search-form input { width: 100% !important; box-sizing: border-box; }
    body { padding-top: 0; } /* Offset adjustment for wrapped header */

    /* Typography & Structure Scaling */
    .entry-meta { flex-wrap: wrap; gap: 10px !important; font-size: 0.85rem !important; }
    .article-container { padding: 1.5rem 15px !important; }
    
    /* Prevents AdSense Aspect Ratios from breaking mobile width */
    .ad-container { max-width: 100%; overflow: visible; aspect-ratio: auto !important; min-height: 100px !important; }
    
}

@media screen and (max-width: 480px) {
    .card-content { padding: 1rem; }
    .main-navigation ul { font-size: 0.85rem; gap: 8px; }
    .toc-wrapper { padding: 1rem; }
    .inline-related-posts { padding: 1rem; border-left-width: 3px; }
}

/* Numbered Pagination Styling */
.pagination-container {
    margin: 3rem 0;
    text-align: center;
    padding-bottom: 2rem;
}

.pagination-container .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-container .page-numbers:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #f8f9fa;
}

.pagination-container .page-numbers.current {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26,115,232,0.2);
}

.pagination-container .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

@media (max-width: 600px) {
    .pagination-container .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}
