
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary-color: hsl(230, 67%, 47%);
    --secondary-color: hsl(50, 67%, 47%);
    --accent-color: hsl(35, 63%, 46%);
    --bg-color: #ffffff;
    --text-color: #1a202c;
    --card-bg: #ffffff;
    --hero-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --font-title: 'Roboto Slab', serif;
    --font-body: 'Roboto', sans-serif;
    --border-radius: 12px;
    --spacing: 1.5rem;
    --primary-rgb: 40, 66, 200;
    --shadow-sm: 0 1px 2px 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);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-fade-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

body {
    font-family: var(--font-body);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    min-height: 100vh;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    margin-bottom: 0.8em;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin-bottom: 1.2em; }

a { 
    text-decoration: none; 
    color: var(--primary-color); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
a:hover { 
    color: var(--accent-color); 
    text-decoration: underline;
    text-underline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Header */
header {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

nav a {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: rgba(var(--primary-rgb, 0,0,0), 0.08);
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

nav a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* Premium Cards with Glass Effect */
.card, .detailed-guide, .calculator-app, .long-form-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card { overflow: hidden; }
.card:hover { 
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.card-img {
    height: 220px;
    background-color: #ddd; 
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
}

.card-content { 
    padding: 1.8rem; 
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover { 
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.btn:hover::before { opacity: 1; }

.btn:active { transform: translateY(-1px); }

/* Hero Section Enhancement */
.hero-section {
    background: var(--hero-gradient);
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section h1,
.hero-section h2,
.hero-section h3 { color: white; }

/* Article Styling */
.detailed-guide, .long-form-content {
    padding: 2.5rem;
    margin: 2rem 0;
}

.detailed-guide h2,
.detailed-guide h3,
.long-form-content h2,
.long-form-content h3 {
    position: relative;
    padding-left: 16px;
}

.detailed-guide h2::before,
.long-form-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.detailed-guide ul,
.detailed-guide ol,
.long-form-content ul,
.long-form-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.detailed-guide li,
.long-form-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

/* Tips Grid Enhancement */
.tips-grid .tip {
    background: rgba(var(--primary-rgb, 0,0,0), 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.tips-grid .tip:hover {
    transform: translateX(8px);
    background: rgba(var(--primary-rgb, 0,0,0), 0.1);
}

/* Author Bio Enhancement */
.author-bio {
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 0,0,0), 0.05), rgba(var(--primary-rgb, 0,0,0), 0.02)) !important;
    border: 1px solid rgba(var(--primary-rgb, 0,0,0), 0.1);
}

/* Calculator App Enhancement */
.calculator-app {
    padding: 2.5rem !important;
    border-top: 5px solid var(--primary-color) !important;
}

.calculator-app input,
.calculator-app select {
    border: 2px solid rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.calculator-app input:focus,
.calculator-app select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 0,0,0), 0.1) !important;
    outline: none !important;
}

/* Footer Premium */
footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer a { color: #cbd5e1; }
footer a:hover { color: white; }

/* Ad Slots */
.ad-slot {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul { flex-direction: column; text-align: center; }
    .container { padding: 0 16px; }
    .hero-section { padding: 2.5rem 1.5rem; }
    .detailed-guide, .long-form-content { padding: 1.5rem; }
}

/* Smooth Scrolling */
html { scroll-behavior: smooth; }

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}
