
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --text-main: #111827;
    --text-muted: #4b5563;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.top-bar {
    background-color: #1e293b;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}
.top-menu a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.top-menu a:hover { color: white; }

.main-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}
.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Primary Nav */
.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}
.primary-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}
.primary-nav a:hover { color: var(--primary); }

.has-dropdown { position: relative; }
.dropdown {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    padding: 12px 0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    z-index: 100;
}
.has-dropdown:hover .dropdown { 
    opacity: 1; 
    visibility: visible; 
    transform: translateX(-50%) translateY(0); 
}
.dropdown li { padding: 8px 24px; }
.dropdown li a { display: block; font-size: 0.95rem; font-weight: 500; }

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: 0.3s;
}

.main-content {
    margin-top: 50px;
    margin-bottom: 80px;
}

/* Post Meta */
.post-meta-details {
    background: #f1f5f9;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #e2e8f0;
}
.post-meta-details a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}
.post-meta-details a:hover { text-decoration: underline; }

/* Post/Page Layout */
.expert-layout {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 60px 80px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}
.post-header-image {
    margin: -60px -80px 40px -80px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}
.post-header-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}
.page-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 40px auto;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
    display: block;
    transition: transform 0.3s;
}
.content-body img:hover {
    transform: scale(1.02);
}
.content-body p { margin-bottom: 24px; font-size: 1.15rem; color: #334155; line-height: 1.8; }
.content-body h2 { font-size: 2.2rem; font-weight: 700; margin: 48px 0 24px; color: #0f172a; }
.content-body h3 { font-size: 1.6rem; font-weight: 600; margin: 32px 0 16px; color: #1e293b; }

/* Premium Lists (Gift Ideas) */
.premium-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}
.premium-list > li {
    background: var(--bg-main);
    padding: 30px 30px 30px 80px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}
.premium-list > li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.premium-list > li::before {
    content: "🎁";
    position: absolute;
    left: 25px;
    top: 30px;
    font-size: 1.8rem;
}
ol.premium-list { counter-reset: gift-counter; }
ol.premium-list > li::before {
    counter-increment: gift-counter;
    content: counter(gift-counter);
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
    left: 20px;
    top: 30px;
}
.premium-list > li p { margin-bottom: 10px; }

/* Responsive Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    background: var(--bg-card);
}
.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}
.premium-table th, .premium-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}
.premium-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}
.premium-table tr:last-child td { border-bottom: none; }
.premium-table tr:hover td { background-color: #f8fafc; }

/* Buy Buttons */
.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    margin: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    border: 1px solid #0f172a;
}
.buy-btn:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Rating Widget */
.rating-schema-widget {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
    text-align: center;
}
.rating-schema-widget h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 20px; }
.rating-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.btn-like, .btn-dislike {
    padding: 12px 28px;
    border: 2px solid var(--border);
    background: transparent;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-like:hover, .btn-like.active { background: #dcfce7; border-color: #22c55e; color: #166534; transform: translateY(-2px); }
.btn-dislike:hover, .btn-dislike.active { background: #fee2e2; border-color: #ef4444; color: #991b1b; transform: translateY(-2px); }

/* Homepage Specific */
.home-section {
    margin-bottom: 80px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #0f172a;
    text-align: center;
}
.hero-section {
    text-align: center;
    padding: 120px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    color: white;
    border-radius: 32px;
    margin-bottom: 80px;
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.4);
    position: relative;
    overflow: hidden;
}
.hero-section h1 { font-size: 4rem; font-weight: 800; margin-bottom: 24px; letter-spacing: -1px; position: relative; z-index: 1; }
.hero-section p { font-size: 1.35rem; margin-bottom: 40px; opacity: 0.9; max-width: 700px; margin-inline: auto; position: relative; z-index: 1; }
.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 40px;
    background: white;
    color: #4f46e5;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}
.cta-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* Categories Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.cat-card {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); color: var(--primary); }

/* Recent Posts Grid */
.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}
.post-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.post-thumb { display: block; overflow: hidden; height: 220px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-info { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 0.9rem; color: #64748b; margin-bottom: 8px; font-weight: 500; }
.post-info h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.post-info h3 a { color: #0f172a; text-decoration: none; transition: color 0.2s; }
.post-info h3 a:hover { color: var(--primary); }
.post-info p:not(.card-meta) { color: var(--text-muted); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; flex: 1; }
.read-more { font-weight: 600; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; }
.read-more:hover { color: var(--primary-hover); text-decoration: underline; }

/* Why Us Section */
.why-us-section {
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.why-content h2 { font-size: 2rem; margin-bottom: 20px; color: #0f172a; }
.why-content p { font-size: 1.15rem; max-width: 800px; margin: 0 auto; color: var(--text-muted); }

/* Footer Widgets Grid */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 20px 0;
    margin-top: 100px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}
.widget h3 { color: white; font-size: 1.35rem; font-weight: 700; margin-bottom: 24px; }
.widget p { font-size: 1.05rem; margin-bottom: 12px; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.2s; font-size: 1.05rem; }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #1e293b; font-size: 0.95rem; }

/* Mobile Responsiveness */
.mobile-only-link {
    display: none;
}
@media (max-width: 992px) {
    .primary-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 20px;
        z-index: 1000;
    }
    .primary-nav.active { display: block !important; }
    .mobile-menu-btn { display: flex; }
    
    .primary-nav ul { flex-direction: column; gap: 15px; }
    .dropdown { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; padding-left: 20px; display: none; }
    .has-dropdown:hover .dropdown { display: block; }

    .expert-layout { padding: 40px 30px; }
    .post-header-image { margin: -40px -30px 30px -30px; }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    .mobile-only-link { display: block; }
    .mobile-only-link:first-of-type { border-top: 1px solid var(--border); padding-top: 15px; margin-top: 10px; }
    .hero-section { padding: 80px 20px; }
    .hero-section h1 { font-size: 2.5rem; }
    .page-title { font-size: 2.2rem; }
    .expert-layout { padding: 32px 20px; border-radius: 16px; }
    .post-header-image { margin: -32px -20px 20px -20px; border-radius: 16px 16px 0 0; }
    .footer-widgets { gap: 30px; }
}
