/* index.css - Redesigned Brain+ Light Theme Layout */
:root {
    /* Colors from the Brain+ Screenshot & Palette */
    --color-bg-base: #f9fbf9;          /* Off-white / light green tint */
    --color-bg-surface: #ffffff;       /* Pure white for cards */
    --color-bg-surface-hover: #f5f8f5; /* Subtle green-tint hover */
    
    --color-text-primary: #0f2238;     /* Dark navy */
    --color-text-secondary: #4a5c6e;   /* Slate/gray */
    --color-text-muted: #8392a1;       /* Light gray-slate */
    
    --color-primary: #009e4f;          /* Vibrant Brain+ green */
    --color-primary-hover: #008542;
    --color-primary-light: #e6f6ee;    /* Light green background for badges */
    
    --border-color: #e2e8e2;
    --border-color-hover: #009e4f;
    --shadow-sm: 0 2px 8px rgba(15, 34, 56, 0.03);
    --shadow-md: 0 12px 30px rgba(15, 34, 56, 0.05);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background grid paper texture */
.dot-grid-pattern {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(rgba(0, 158, 79, 0.05) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
}

/* Ambient glow */
.bg-blur-circle {
    position: absolute;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 158, 79, 0.04) 0%, transparent 70%);
    top: 10%;
    left: 20%;
    z-index: -1;
    filter: blur(60px);
}

/* Main Container Layout */
.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: start;
}

/* Left Panel (Sticky Sidebar) */
.left-panel {
    position: sticky;
    top: 4rem;
}

.panel-sticky-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Logo Area */
.logo-header {
    display: flex;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--color-primary);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.logo-text span.logo-plus {
    color: var(--color-primary);
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
}

.hero-content h1 span.highlight {
    color: var(--color-primary);
}

.hero-content .subtitle {
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
}

/* Developer Apology Card */
.apology-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

/* Clean green indicator line on the left side of the message */
.apology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-primary);
}

.card-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #f1f3f1;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    width: fit-content;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #8392a1;
    border-radius: 50%;
}

.status-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apology-card h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.apology-card p {
    color: var(--color-text-secondary);
    font-size: 0.975rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Right Panel Layout */
.right-panel {
    display: flex;
    flex-direction: column;
}

.alternatives-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alternatives-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 550px;
}

/* Grid Layout for Links */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Link Cards Redesigned */
.link-card {
    text-decoration: none;
    color: inherit;
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 230px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 1.5rem;
    z-index: 2;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.card-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

/* Unblocked Bypass Badges */
.bypass-badge {
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-securly {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-goguardian {
    background: #fce7f3;
    color: #be185d;
}

.badge-github {
    background: #f3f4f6;
    color: #374151;
}

.badge-mirrors {
    background: #dcfce7;
    color: #15803d;
}

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

.card-body-text h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.card-body-text p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.45;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.card-url {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    transition: color 0.2s ease;
}

.arrow-indicator {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

.arrow-indicator svg {
    width: 1.25rem;
    height: 1.25rem;
    transform: translateX(-3px);
    opacity: 0.5;
    transition: all 0.25s ease;
}

/* Card Radial Shine Effect */
.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--x, 0px) var(--y, 0px), rgba(0, 158, 79, 0.04), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

/* Card Hover Animations */
.link-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 25px rgba(0, 158, 79, 0.07);
    background-color: var(--color-bg-surface-hover);
}

.link-card:hover .card-glow {
    opacity: 1;
}

.link-card:hover .card-body-text h3 {
    color: var(--color-primary);
}

.link-card:hover .card-url {
    color: var(--color-primary);
}

.link-card:hover .arrow-indicator {
    color: var(--color-primary);
}

.link-card:hover .arrow-indicator svg {
    transform: translateX(2px);
    opacity: 1;
}

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

.app-footer p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .left-panel {
        position: relative;
        top: 0;
    }
    
    .panel-sticky-content {
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 640px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .app-container {
        padding: 2.5rem 1rem;
    }
    
    .apology-card {
        padding: 1.5rem;
    }
}
