/*
Theme Name: Amdavad Insider
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: A premium news and lifestyle theme for Ahmedabad, featuring a shorts-style feed and local ad integration.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #FF5F1F;
    --primary-gradient: linear-gradient(135deg, #FF5F1F 0%, #FF9966 100%);
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --fun-gradient-1: linear-gradient(135deg, #fff1eb 0%, #ace0f9 100%);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow: hidden;
    margin: 0;
    height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.glass-header {
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: none;
    transition: background 0.3s;
}

#main-feed {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    scroll-behavior: smooth;
    max-width: 100% !important;
}

@media (min-width: 768px) {
    #main-feed {
        max-width: 500px !important;
        margin: 0 auto;
        background: #000;
    }
}

.news-card {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    background: var(--bg-light);
    border: none;
    box-shadow: none;
}

.card-image {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 45vh;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.5s ease;
    z-index: 1;
}

.news-card:hover .card-image {
    transform: none;
}

.card-overlay {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 60vh;
    /* Subtle mesh gradient background */
    background: radial-gradient(circle at top right, #fff1eb, #ffffff 40%);
    padding: 32px;
    padding-bottom: 110px;
    z-index: 10;
    color: var(--text-main) !important;
    border-radius: 40px 40px 0 0;
    /* More rounded */
    margin-top: -40px;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

.news-card::before {
    display: none;
}

/* Gradient Headline */
.card-overlay h2 {
    color: #1e293b !important;
    background: linear-gradient(45deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    font-size: 2rem;
    margin-top: 10px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.card-overlay p {
    color: #475569 !important;
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-overlay .text-slate-900 {
    color: #0f172a !important;
}

.card-overlay .text-slate-600 {
    color: #475569 !important;
}

.card-overlay .text-slate-400 {
    color: #94a3b8 !important;
}

.card-overlay .border-slate-100 {
    border-color: #e2e8f0 !important;
}

/* Fun Badge */
.badge {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(255, 95, 31, 0.3);
    color: white;
    margin-bottom: 12px;
    display: inline-block;
    border: 2px solid white;
}

/* Animated Interaction Icons */
.fa-bookmark,
.fa-share-nodes {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 50%;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fa-bookmark:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: scale(1.1) rotate(-10deg);
}

.fa-share-nodes:hover {
    background: #dbeafe;
    color: #3b82f6;
    transform: scale(1.1) rotate(10deg);
}

/* Buttons */
.open-ad {
    background: var(--primary-gradient) !important;
    box-shadow: 0 10px 25px -5px rgba(255, 95, 31, 0.4) !important;
    border: none;
    transition: transform 0.2s;
}

.open-ad:active {
    transform: scale(0.95);
}

/* Category Pills */
.category-pill {
    border: none;
    color: #64748b;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.category-pill.active {
    background: #1e293b;
    color: white;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(30, 41, 59, 0.3);
}

@media (max-width: 768px) {
    .card-image {
        height: 45vh;
    }

    .card-overlay {
        height: 60vh;
        padding: 24px;
        padding-bottom: 90px;
    }

    .card-overlay h2 {
        font-size: 1.5rem !important;
    }

    .news-card {
        margin-bottom: 0px;
        border-radius: 0px;
    }
}