/* =====================================================
   TANHAI DAIRIES - MODERN STYLE.CSS
   Shayari, Lyrics & Status Website Design
===================================================== */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c2bd9;
    --primary-dark: #4c1d95;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #16a34a;

    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);

    --radius: 18px;
    --radius-lg: 28px;
    --transition: all 0.3s ease;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #fcfcff 0%, #f8fafc 100%);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(92%, 1200px);
    margin: 0 auto;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: var(--white);
    font-size: 14px;
    padding: 10px 0;
    text-align: center;
}

.top-bar i {
    color: #ffd6e7;
    margin-right: 6px;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: var(--shadow-sm);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 18px 0;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 22px;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.logo-text strong {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar ul li a {
    position: relative;
    font-weight: 600;
    color: var(--text);
    padding: 6px 0;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.navbar ul li a:hover {
    color: var(--primary);
}

.navbar ul li a:hover::after {
    width: 100%;
}

/* Search */
.header-search {
    min-width: 280px;
}

.header-search form {
    display: flex;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 18px;
    font-size: 14px;
}

.header-search button {
    border: none;
    cursor: pointer;
    padding: 0 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Hero Section */
.hero-section {
    padding: 120px 0;
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 35%),
        radial-gradient(circle at bottom left, rgba(108, 43, 217, 0.10), transparent 40%);
}

.hero-content {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 35px;
}

/* Buttons */
.btn-primary,
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 30px rgba(108, 43, 217, 0.25);
    transition: var(--transition);
}

.btn-primary:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(108, 43, 217, 0.30);
}

/* Sections */
section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 50px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.category-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.category-card i {
    font-size: 38px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

/* Post Cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.post-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin-bottom: 16px;
}

.post-card h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
}

.post-card h3 a:hover {
    color: var(--primary);
}

.post-card p {
    color: var(--muted);
    margin-bottom: 20px;
}

.read-more {
    font-weight: 700;
    color: var(--primary);
}

/* About */
.about-text {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted);
    font-size: 18px;
}

/* Newsletter */
.newsletter-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.newsletter-box h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.newsletter-box p {
    opacity: 0.95;
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    min-width: 280px;
    flex: 1;
    max-width: 420px;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    outline: none;
}

.newsletter-form button {
    border: none;
    cursor: pointer;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--white);
}

/* Footer */
.site-footer {
    background: #0b1120;
    color: #cbd5e1;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 18px;
}

.footer-column p,
.footer-column li {
    color: #94a3b8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.social-links a:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    text-align: center;
    font-size: 14px;
}

.footer-bottom p + p {
    margin-top: 6px;
}

/* Utility */
.no-posts {
    text-align: center;
    color: var(--muted);
    font-size: 18px;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 992px) {
    .header-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .header-search {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .hero-section {
        padding: 90px 0;
    }

    .newsletter-box {
        padding: 35px 25px;
    }

    .newsletter-box h2 {
        font-size: 28px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        max-width: none;
    }
}