/*
Theme Name: StatusAiTech Pro
Author: Er. Rameshwar Singh (StatusAiTech.com)
Description: Ultra-Fast, Zero-CLS 3D Layout Designed for General Knowledge, Family Quotes & Wishes
Version: 4.2
*/

/* 1. बेसिक रिसेट और मोबाइल सुरक्षा */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
    font-display: swap; /* Zero-CLS Fix for Typography */
    background-color: #f0f2f5; 
    color: #1e293b;
    line-height: 1.6;
}

/* 2. मुख्य कंटेनर */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    contain: layout style; /* Renders layout efficiently */
}

/* 3. मुख्य कंटेंट क्षेत्र */
#primary {
    flex: 2;
    min-width: 280px;
    max-width: 100%;
}

/* 4. 3D फ़ोल्डर कार्ड स्टाइल */
.status-article, .status-article-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 4px 0 #cbd5e1; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden; 
}

.status-article:hover, .status-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08), 0 4px 0 #dc2626;
}

/* 5. टाइटल्स और लिंक्स */
.entry-title a, .post-title a {
    text-decoration: none;
    color: #0f172a;
    transition: color 0.2s ease;
}

.entry-title a:hover, .post-title a:hover {
    color: #dc2626;
}

/* 6. इमेजेस - ZERO-CLS 16:9 Aspect Ratio Fix */
.post-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e2e8f0; /* Placeholder layer while image loads */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.post-thumbnail img, img {
    max-width: 100%; 
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.post-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
}

/* 7. Quotes & General Knowledge Special Styling */
.quote-card-box {
    background: #ffe4e6;
    border-left: 6px solid #dc2626;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 19px;
    font-weight: 600;
    color: #881337;
    position: relative;
}

.copy-status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.copy-status-btn:hover {
    background: #991b1b;
}

/* 8. Typography (पढ़ने में आसान एवं साफ़) */
.entry-content {
    line-height: 1.9;
    font-size: 18px;
    color: #334155;
    word-wrap: break-word;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2 {
    font-size: clamp(20px, 5vw, 26px);
    border-bottom: 3px solid #dc2626;
    display: inline-block;
    padding-bottom: 5px;
    margin: 25px 0 15px 0;
    color: #0f172a;
}

.entry-content blockquote {
    border-left: 5px solid #dc2626;
    background: #fef2f2;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
    color: #991b1b;
}

/* 9. साइडबार (3D विगेट्स) */
#secondary {
    flex: 1;
    min-width: 280px;
    max-width: 100%;
}

.widget {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04), 0 3px 0 #cbd5e1;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    border-left: 5px solid #dc2626;
    padding-left: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* 10. कैटेगरी लिस्ट - फोल्डर 📁 आइकन स्टाइल */
#secondary .widget_categories ul, 
.wp-block-categories-list {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#secondary .widget_categories ul li a, 
.wp-block-categories-list li a, 
.category-list ul li a {
    display: block !important;
    background-color: #ffffff !important;
    color: #dc2626 !important; 
    padding: 12px 15px 12px 45px !important;
    margin-bottom: 10px !important;
    border-left: 5px solid #dc2626 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    position: relative !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
    transition: all 0.2s ease !important;
}

#secondary .widget_categories ul li a::before,
.wp-block-categories-list li a::before {
    content: "📁" !important; 
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 18px !important;
}

#secondary .widget_categories ul li a:hover,
.wp-block-categories-list li a:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

/* 11. मोबाइल रेस्पॉन्सिव रूल्स */
@media screen and (max-width: 768px) {
    .main-container {
        padding: 10px;
        flex-direction: column;
    }
    
    #primary, #secondary {
        width: 100%;
    }

    .status-article, .status-article-card {
        padding: 18px;
        margin-bottom: 20px;
    }

    .entry-content {
        font-size: 17px;
    }
}

/* 12. मोबाइल पॉप-अप और जेटपैक ओवरले ब्लॉकर्स (Zero-CLS Fix) */
@media screen and (max-width: 768px) {
    .jetpack-subscribe-popup,
    .jetpack-subscription-modal,
    .modal-popup,
    .overlay-popup,
    #subscribe-popup,
    .popup-box,
    .jetpack_subscription_widget {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* 13. RSS Feed - Exact Blogger & Category 3D Box Style (Zero Bullets) */
#secondary .widget_rss ul,
.widget_rss ul {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#secondary .widget_rss ul li,
.widget_rss ul li {
    list-style: none !important;
    list-style-type: none !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 5px solid #dc2626 !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
    transition: all 0.2s ease !important;
    display: block !important;
}

#secondary .widget_rss ul li:hover,
.widget_rss ul li:hover {
    border-color: #cbd5e1 !important;
    border-left-color: #991b1b !important;
    transform: translateX(4px) !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06) !important;
}

#secondary .widget_rss ul li a,
.widget_rss ul li a.rsswidget {
    display: block !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    margin-bottom: 6px !important;
    transition: color 0.2s ease !important;
}

#secondary .widget_rss ul li a:hover,
.widget_rss ul li a.rsswidget:hover {
    color: #dc2626 !important;
}

#secondary .widget_rss ul li .rss-date,
.widget_rss ul li .rss-date {
    display: block !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

#secondary .widget_rss ul li .rss-date::before,
.widget_rss ul li .rss-date::before {
    content: "📅 " !important;
}