/* ============================================
   INNER LAGOON - OCEAN COLOR PALETTE
   ============================================ */

:root {
    /* Ocean Color Palette */
    --color-bg-main: #E8F4F8;           /* Very light aqua background */
    --color-bg-section: #D4EFEF;        /* Light turquoise sections */
    --color-primary: #52B6C4;           /* Lagoon blue (buttons, links) */
    --color-accent: #7DD3C0;            /* Bright turquoise accents */
    --color-text-dark: #1A4D5C;         /* Deep ocean blue text */
    --color-text-medium: #2A6F7A;       /* Dark teal text */
    --color-white: #FFFFFF;
    --color-coral: #FFD7C9;             /* Coral pink (Gumroad) */
    --color-deep-ocean: #0D3B4D;        /* Very deep ocean (footer) */
    
    /* Gradients */
    --gradient-ocean: linear-gradient(135deg, #E8F4F8 0%, #D4EFEF 100%);
    --gradient-lagoon: linear-gradient(135deg, #7DD3C0 0%, #52B6C4 100%);
    --gradient-deep: linear-gradient(135deg, #2A6F7A 0%, #1A4D5C 100%);
    
    /* Shadows with ocean tint */
    --shadow-light: 0 2px 8px rgba(82, 182, 196, 0.1);
    --shadow-medium: 0 4px 16px rgba(82, 182, 196, 0.15);
    --shadow-strong: 0 8px 24px rgba(82, 182, 196, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--color-text-dark);
    background: var(--gradient-ocean);
    background-attachment: fixed;
}

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--color-text-dark);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul {
    list-style-position: inside;
    margin-bottom: var(--spacing-sm);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   HEADER
   ============================================ */

#header {
    background: var(--color-white);
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-image {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: var(--spacing-md);
}

nav a {
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

nav a:hover {
    background: var(--color-bg-section);
    color: var(--color-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

#hero h1 {
    font-size: 3rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
}

.subline {
    font-size: 1.25rem;
    color: var(--color-text-medium);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.6;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-dark);
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.hero-image {
    margin-top: var(--spacing-lg);
}

.hero-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: var(--spacing-xl) 0;
}

section:nth-child(even) {
    background: var(--color-bg-section);
}

.section-content {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: left;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-image {
    margin: var(--spacing-lg) auto;
    text-align: center;
}

.section-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-medium);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* ============================================
   CARDS GRID
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.card h3 {
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--color-text-medium);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.card-image-square {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.card-image-square:hover {
    transform: scale(1.05);
}

.card-disclaimer {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-medium);
    margin: var(--spacing-sm) 0;
    padding: var(--spacing-sm);
    background: var(--color-bg-section);
    border-radius: var(--radius-sm);
}

/* Card specific backgrounds */
.card-spotify {
    background: linear-gradient(135deg, #D4EFEF 0%, var(--color-white) 100%);
}

.card-gumroad {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-white) 100%);
}

.card-patreon {
    background: var(--gradient-deep);
    color: var(--color-white);
}

.card-patreon h3,
.card-patreon p,
.card-patreon .card-disclaimer {
    color: var(--color-white);
}

.card-patreon .card-disclaimer {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: var(--spacing-sm);
}

.btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--color-white);
}

.btn-coral {
    background: var(--color-primary);
    font-size: 1.1rem;
    padding: var(--spacing-sm) var(--spacing-md);
}

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

/* ============================================
   CORAL TRACKER
   ============================================ */

.coral-tracker {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(125, 211, 192, 0.1) 0%, rgba(82, 182, 196, 0.1) 100%);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    text-align: center;
}

.coral-tracker p {
    color: var(--color-text-dark);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   COMMUNITY NOTE
   ============================================ */

.community-note {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-white);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-light);
}

.community-note p {
    color: var(--color-text-dark);
    font-style: italic;
    margin: 0;
}

/* ============================================
   CLOSING SECTION
   ============================================ */

.closing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.closing-text {
    text-align: left;
}

.closing-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-dark);
}

.closing-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    transition: transform 0.3s ease;
}

.closing-image img:hover {
    transform: scale(1.02);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--gradient-deep);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: var(--color-white);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-accent);
}

/* ============================================
   SOCIAL MEDIA BUTTONS
   ============================================ */

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: var(--spacing-md) 0;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    position: relative;
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-strong);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

/* Patreon - White P on Black */
.social-patreon {
    background: #000000;
    color: #ffffff;
}

/* Gumroad - Black G on Pink */
.social-gumroad {
    background: #FF90E8;
    color: #000000;
}

/* Instagram - Gradient */
.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

/* YouTube - Red */
.social-youtube {
    background: #FF0000;
    color: #ffffff;
}

/* Spotify - Green */
.social-spotify {
    background: #1DB954;
    color: #ffffff;
}

/* Facebook - Blue */
.social-facebook {
    background: #1877F2;
    color: #ffffff;
}

/* X (Twitter) - Black */
.social-x {
    background: #000000;
    color: #ffffff;
}

/* Threads - White @ on Black */
.social-threads {
    background: #000000;
    color: #ffffff;
}

.footer-note {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(26, 77, 92, 0.85);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--color-white);
    margin: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(26, 77, 92, 0.4);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--color-bg-section);
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.legal-section {
    margin-bottom: var(--spacing-lg);
}

.legal-section h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.legal-section h4 {
    color: var(--color-text-dark);
    margin: var(--spacing-md) 0 var(--spacing-xs);
    font-size: 1.1rem;
}

.legal-section p {
    color: var(--color-text-medium);
    line-height: 1.7;
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--color-accent);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    nav {
        gap: var(--spacing-sm);
    }

    nav a {
        font-size: 0.85rem;
        padding: var(--spacing-xs);
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .closing-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .closing-image {
        order: -1;
    }

    .closing-image img {
        max-width: 100%;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .social-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .subline {
        font-size: 1.1rem;
    }

    .logo-image {
        height: 50px;
    }

    nav {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .modal-content {
        margin: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .card-image-square {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .social-btn {
        width: 40px;
        height: 40px;
    }

    .social-btn svg {
        width: 20px;
        height: 20px;
    }

    .social-media {
        gap: 0.75rem;
    }
}
