/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Design System */
:root {
    --background: hsl(0 0% 100%);
    --foreground: hsl(222.2 84% 4.9%);
    --card: hsl(0 0% 100%);
    --card-foreground: hsl(222.2 84% 4.9%);
    --card-hover: hsl(345 82% 97%);
    --primary: hsl(345 82% 52%);
    --primary-foreground: hsl(210 40% 98%);
    --secondary: hsl(280 87% 65%);
    --secondary-foreground: hsl(210 40% 98%);
    --accent: hsl(45 93% 58%);
    --accent-foreground: hsl(222.2 84% 4.9%);
    --muted: hsl(210 40% 96%);
    --muted-foreground: hsl(215.4 16.3% 46.9%);
    --border: hsl(214.3 31.8% 91.4%);
    --hero-bg: linear-gradient(135deg, hsl(345 82% 52%) 0%, hsl(280 87% 65%) 50%, hsl(45 93% 58%) 100%);
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --card-shadow-hover: 0 20px 40px -12px hsl(345 82% 52% / 0.25), 0 8px 16px -8px hsl(280 87% 65% / 0.3);
    --radius: 12px;
    --container-max-width: 1200px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-brand:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('src/assets/theme-park-hero.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 1.5rem;
    margin: 4rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero-content {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    z-index: 10;
    max-width: 48rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: var(--card-shadow-hover);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: hsl(345 82% 47%);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background-color: hsl(280 87% 60%);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    background-color: hsl(45 93% 53%);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Hero Divider */
.hero-divider {
    width: 8rem;
    height: 0.5rem;
    background: var(--hero-bg);
    margin: 0 auto;
    border-radius: 9999px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 4rem 0;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styles */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
    height: 100%;
    display: block;
}

.card:hover {
    background-color: var(--card-hover);
    box-shadow: var(--card-shadow-hover);
    transform: scale(1.02);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    height: 100%;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--card-foreground);
    transition: color 0.2s ease;
}

.card:hover .card-title {
    color: var(--accent);
}

.card-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    margin: 4rem 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-text {
    color: var(--muted-foreground);
}

/* Article Styles */
.article-header {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    text-decoration: none;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background-color: var(--muted);
    color: var(--foreground);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 3rem;
    }
}

.article-audience {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

/* Article Content */
.article-content {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.prose {
    max-width: none;
    line-height: 1.7;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 2rem 0 1rem 0;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.prose ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prose li {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.prose strong {
    color: var(--foreground);
    font-weight: 600;
}

/* Article Navigation */
.article-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.article-nav-text {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.article-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .article-nav-buttons {
        flex-direction: row;
    }
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background-color: var(--muted);
    border-color: var(--accent);
}

/* Page Styles */
.page-header {
    text-align: center;
    margin: 2rem 0 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3rem;
    }
}

.page-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Articles List */
.articles-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.article-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
}

.article-card:hover {
    background-color: var(--card-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.article-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 0.5rem;
}

.article-card:hover .article-card-title {
    color: var(--accent);
}

.article-card-audience {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero {
        margin: 2rem 0;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 3rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* About Section Styles */
.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
    font-weight: 600;
}

.author-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .author-grid {
        gap: 3rem;
    }
}

.author-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .author-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
}

.author-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.author-content {
    flex: 1;
}

.author-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .author-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.author-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.author-role {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin: 0;
}

.author-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
    background: var(--background);
}

.author-linkedin:hover {
    background: var(--muted);
    border-color: var(--primary);
    color: var(--primary);
}

.author-bio {
    color: var(--card-foreground);
    line-height: 1.6;
    margin: 0;
}