/* ==================================================
   Eurovision Host Suite Homepage - Stylesheet
   Sofia 2027 - Premium Dark Glassmorphism
   ================================================== */

:root {
    --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme Colors */
    --bg-main: #050a15;
    --bg-card: rgba(15, 23, 42, 0.45);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(16, 185, 129, 0.4);
    
    /* Neon Accent Colors */
    --color-primary: #10b981;    /* Emerald Green */
    --color-secondary: #06b6d4;  /* Cyan */
    --color-accent: #f59e0b;     /* Amber */
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
}

/* Ambient glow blobs */
.glow-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 45% 75%, rgba(245, 158, 11, 0.04) 0%, transparent 40%);
    filter: blur(80px);
    pointer-events: none;
}

/* Main Container */
.app-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.badge {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #050a15;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

h1 {
    font-family: var(--font-header);
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Language selector */
.lang-selector {
    display: flex;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.2rem;
}

.lang-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Glassmorphism card base */
.glass {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.01) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
}

/* Hero Section */
.hero-section {
    padding: 2.5rem 2rem;
    text-align: center;
    border-color: rgba(16, 185, 129, 0.15);
}

.hero-section h2 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.hero-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.app-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.08);
}

.card-icon {
    font-size: 2rem;
}

.app-card h3 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.app-card:hover h3 {
    color: var(--color-primary);
}

.app-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.card-action {
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

/* Blog Preview Section */
.blog-preview-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.section-header h2 {
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.section-header a {
    font-family: var(--font-header);
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.section-header a:hover {
    color: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card-title a {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.blog-card-title a:hover {
    color: var(--color-secondary);
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.blog-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

/* Footer */
.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border-card);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: #ffffff;
}

.disclaimer-content {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
}

.copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .apps-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .badge {
        font-size: 0.7rem;
    }
    
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .hero-section {
        padding: 1.75rem 1.25rem;
    }
    
    .hero-section h2 {
        font-size: 1.35rem;
    }
    
    .hero-section p {
        font-size: 0.85rem;
    }
    
    .app-card, .blog-card {
        padding: 1.25rem;
    }
}
