/*
Theme Name: Yuva Pradesh Premium
Theme URI: https://yuvapradesh.com/
Author: Yuva Pradesh Team
Description: A high-end, modern news portal theme with premium typography, glass navigation, and a bento-style grid.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yuvapradesh-premium
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Noto+Sans+Devanagari:wght@400;500;700;900&display=swap');

:root {
    --color-accent: #E63946;
    --color-ink: #1A1A1A;
    --color-paper: #FDFCFB;
    --color-muted: #6B7280;
    --color-border: #E5E7EB;
    --font-hindi: "Noto Sans Devanagari", sans-serif;
    --font-serif: "Playfair Display", serif;
    --container-width: 1280px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-paper);
    color: var(--color-ink);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-hindi {
    font-family: var(--font-hindi);
    font-weight: 900;
    line-height: 1.1;
}

.font-serif {
    font-family: var(--font-serif);
}

/* Glass Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.logo h1 span {
    color: #2D5A27;
}

.main-menu ul {
    display: flex;
    gap: 25px;
}

.main-menu a {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted);
    position: relative;
    padding-bottom: 5px;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.main-menu a:hover::after {
    width: 100%;
}

.main-menu a:hover {
    color: var(--color-accent);
}

/* Dropdown Styles */
.main-menu .menu-item-has-children {
    position: relative;
}

.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 15px;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.main-menu .menu-item-has-children:hover .sub-menu {
    display: flex;
}

.main-menu .sub-menu a {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.main-menu .sub-menu a:hover {
    background: var(--color-paper);
}

.main-menu .sub-menu a::after {
    display: none;
}

/* E-Paper Button */
.epaper-btn:hover {
    background: var(--color-ink) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

/* Breaking Ticker */
.breaking-ticker {
    background: var(--color-ink);
    color: white;
    padding: 14px 0;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--color-accent);
    color: white;
    padding: 5px 18px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ticker-track {
    display: flex;
    gap: 60px;
    animation: ticker-scroll 40s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-family: var(--font-hindi);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.9;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    padding: 60px 0;
}

.bento-card {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
}

.bento-card.featured {
    grid-column: span 8;
    grid-row: span 2;
    background: var(--color-ink);
    color: white;
    min-height: 500px;
}

.bento-card.standard {
    grid-column: span 4;
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.featured .card-image {
    height: 100%;
    position: absolute;
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.bento-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.featured .card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

.category-tag {
    background: var(--color-accent);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.card-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.featured .card-title {
    font-size: 48px;
}

.card-excerpt {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured .card-excerpt {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    max-width: 80%;
}

/* Footer */
.premium-footer {
    background: var(--color-ink);
    color: white;
    padding: 100px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo h2 {
    font-size: 36px;
    font-style: italic;
    margin-bottom: 25px;
}

.footer-desc {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.8;
}

.footer-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 30px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card.featured, .bento-card.standard {
        grid-column: span 2;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-menu {
        display: none;
    }
    .featured .card-title {
        font-size: 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
