/*
Theme Name: Astra Child with AI Post Styling & Timeout Fix
Theme URI: https://yourwebsite.com/
Template: astra
Author: Your Name
Description: Astra चाइल्ड थीम – AI जनरेटेड पोस्ट को आकर्षक रंगीन रूप देती है तथा PHP & HTTP टाइमआउट समस्या का समाधान करती है।
Version: 1.0.0
*/

/* Import parent theme style */
@import url("../astra/style.css");

/* ========== AI पोस्ट के लिए रंगीन स्टाइलिंग ========== */
/* टेबल स्टाइल */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
}
.entry-content th {
    background: #1a3c6e;
    color: #ffffff;
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}
.entry-content td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}
.entry-content tr:nth-child(even) {
    background-color: #f2f6fb;
}
.entry-content tr:hover {
    background-color: #e8f0fe;
}

/* हेडिंग्स */
.entry-content h1 {
    color: #b22222;
    border-bottom: 3px solid #b22222;
    padding-bottom: 10px;
    margin-top: 30px;
}
.entry-content h2 {
    color: #1a3c6e;
    border-left: 5px solid #1a3c6e;
    padding-left: 15px;
    margin-top: 30px;
}
.entry-content h3 {
    color: #2e6da4;
}

/* रंगीन बॉक्स */
.important-box {
    background: #f8d7da;
    border-left: 5px solid #dc3545;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    color: #721c24;
}
.green-box {
    background: #d4edda;
    border-left: 5px solid #28a745;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    color: #155724;
}
.highlight-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    color: #856404;
}
.info-box {
    background: #d1ecf1;
    border-left: 5px solid #17a2b8;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    color: #0c5460;
}

/* लिंक स्टाइल */
.entry-content a {
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
}
.entry-content a:hover {
    text-decoration: underline;
}

/* सूचियाँ */
.entry-content ul, .entry-content ol {
    margin: 15px 0 15px 25px;
}
.entry-content li {
    margin-bottom: 5px;
}

/* मोबाइल के लिए */
@media (max-width: 768px) {
    .entry-content table {
        font-size: 13px;
    }
    .entry-content th, .entry-content td {
        padding: 8px;
    }
}

/* ================================
   Latest Posts Block – Clean Professional Style
================================= */

/* Container spacing */
.wp-block-latest-posts {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 16px;
    background-color: #fdfdfd;
}

/* Individual post item */
.wp-block-latest-posts li {
    list-style: none;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-left: 5px solid #006699;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for post */
.wp-block-latest-posts li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Post title link */
.wp-block-latest-posts a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #006699;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover and focus for accessibility */
.wp-block-latest-posts a:hover,
.wp-block-latest-posts a:focus {
    color: #d13a7a;
    text-decoration: underline;
    outline: none;
}

/* Featured image block */
.wp-block-latest-posts .wp-block-latest-posts__featured-image {
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
}

/* Featured image styling */
.wp-block-latest-posts .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

/* Image hover effect */
.wp-block-latest-posts .wp-block-latest-posts__featured-image img:hover {
    transform: scale(1.05);
}

/* Post excerpt */
.wp-block-latest-posts .wp-block-latest-posts__excerpt {
    font-size: 15px;
    color: #444;
    margin-top: 10px;
    line-height: 1.6;
}

/* Post date */
.wp-block-latest-posts .wp-block-latest-posts__post-date {
    display: block;
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-top: 8px;
}

/* Author name */
.wp-block-latest-posts .wp-block-latest-posts__author {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    margin-top: 6px;
}

/* Author hover (optional) */
.wp-block-latest-posts .wp-block-latest-posts__author:hover {
    color: #d13a7a;
}

/* ================================
   Responsive Design
================================= */
@media (max-width: 768px) {
    .wp-block-latest-posts {
        padding: 10px;
    }

    .wp-block-latest-posts li {
        padding: 14px;
    }

    .wp-block-latest-posts a {
        font-size: 16px;
    }

    .wp-block-latest-posts .wp-block-latest-posts__excerpt {
        font-size: 14px;
    }
}