/* Big Picture Mode - Styles
 *
 * Brand Colours:
 * - Main: #30492F (green), #6B64FB (purple)
 * - Secondary: #FC606B (coral), #751E48 (burgundy), #F9C73B (yellow)
 * - Text: #2D3748 (dark), #ECE7D9 (light)
 * - Background: #F6F3EC (cream)
 * - Complementary: #0D7377 (teal), #E8874A (orange), #B8A67C (tan)
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700&display=swap');

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

:root {
    /* Main colours */
    --green: #30492F;
    --purple: #6B64FB;

    /* Secondary colours */
    --coral: #FC606B;
    --burgundy: #751E48;
    --yellow: #F9C73B;
    --cream: #F6F3EC;
    --pink: #E3B7BE;

    /* Text colours */
    --text-dark: #2D3748;
    --text-light: #ECE7D9;

    /* Complementary colours (from deck) */
    --teal: #0D7377;
    --orange: #E8874A;
    --tan: #B8A67C;
    --lavender: #B8C4DC;
    --pink-light: #F2D4D7;
    --blue-grey: #C5CDD8;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--green) 0%, #243822 100%);
    color: var(--text-light);
    line-height: 1.6;
}

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(48, 73, 47, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.logo-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover {
    color: var(--coral);
}

.logo:hover .logo-icon {
    transform: translateX(4px);
}

nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 1;
    color: var(--coral);
}

.nav-link.active {
    opacity: 1;
    cursor: default;
}

/* Mobile dropdown - hidden on desktop */
.nav-mobile {
    display: none;
    position: relative;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(48, 73, 47, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 140px;
    box-shadow: var(--shadow-md);
    z-index: 200;
}

.nav-toggle:checked ~ .nav-dropdown {
    display: flex;
    flex-direction: column;
}

.nav-dropdown .nav-link {
    padding: 0.75rem 1.25rem;
    display: block;
}

.nav-dropdown .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main */
main {
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    margin-top: -5vh;
    background-image: url('city from hill.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

main.main-beige {
    background: var(--text-light);
    background-image: none;
    margin-top: 0;
    padding-top: 2rem;
}

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

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.tagline {
    color: var(--coral);
    font-size: 1.3rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Cards */
.cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    max-width: 800px;
    margin: 4rem auto 0;
    width: 100%;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.cards .card {
    flex: 0 1 240px;
}

.card {
    background: var(--cream);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before,
.card::after {
    content: '';
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s ease;
}

.card::before {
    left: 0;
    border-radius: 20px 0 0 20px;
}

.card::after {
    right: 0;
    border-radius: 0 20px 20px 0;
}

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

.card:hover::before,
.card:hover::after {
    width: 6px;
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-weight: 700;
}

.card p {
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.85rem;
    margin: 0;
}

/* Card color accents - dual bars */
.card.coral::before,
.card.coral::after {
    background: var(--green);
}

.card.purple::before,
.card.purple::after {
    background: var(--green);
}

/* Coral and purple card styles */
.card.coral,
.card.purple {
    background: var(--green);
}

.card.coral h2,
.card.coral p,
.card.purple h2,
.card.purple p {
    color: var(--text-light);
}

.card.coral h2,
.card.purple h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.card.coral p,
.card.purple p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.card.yellow::before,
.card.yellow::after {
    background: var(--yellow);
}

/* Staggered card animations */
.card:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.3s backwards; }
.card:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.4s backwards; }
.card:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.5s backwards; }

/* Status */
.status {
    text-align: center;
    padding: 2rem 0 0;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.status h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 700;
}

.status p {
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.7;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

footer p {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-url {
    color: var(--coral);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
    opacity: 1;
}

/* Profile Pages */
.profile-header {
    text-align: center;
    padding: 2rem 0 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.avatar-placeholder img {
    width: 150%;
    height: 150%;
    object-fit: cover;
    object-position: center 20%;
}

.avatar-placeholder:has(img) {
    background: none;
    border: none;
}

/* Avatar glow effect - only for placeholders without images */
.avatar-placeholder:not(:has(img))::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    filter: blur(12px);
    z-index: -1;
}

.profile-header h1 {
    font-size: 2.4rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.profile-header .subtitle {
    color: var(--coral);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.profile-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
    padding-bottom: 3rem;
    box-sizing: border-box;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.section {
    background: var(--cream);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.section.full-width {
    grid-column: 1 / -1;
}

.section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.section p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: left;
}

.section.center-text p {
    text-align: center;
}

.section ul {
    list-style: none;
    color: var(--text-dark);
}

.section li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.section a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Sidebar link arrows */
.section.sidebar a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.section.sidebar a::after {
    content: ' →';
    opacity: 1;
    transform: translateX(0);
}

.section.coral {
    background: var(--coral);
    color: var(--text-light);
}

.section.coral h2 {
    color: var(--text-light);
}

.section.coral p,
.section.coral li {
    color: var(--text-light);
}

.section.purple {
    background: var(--purple);
    color: var(--text-light);
}

.section.purple h2 {
    color: var(--text-light);
}

.section.purple p,
.section.purple li {
    color: var(--text-light);
}

.section.purple a {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.section.purple a:hover {
    color: var(--cream);
}

.section.sidebar {
    background: var(--green);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.section.sidebar ul {
    padding: 0;
    margin: 0;
}

.section.sidebar li {
    padding: 0.5rem 0;
}

.section.sidebar:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.section.sidebar h2 {
    color: var(--coral);
}

.section.sidebar.purple-heading h2 {
    color: var(--purple);
}

.section.sidebar.purple-heading a:hover {
    color: var(--purple);
}

.section.sidebar a {
    color: var(--text-light);
    opacity: 0.9;
}

.section.sidebar a:hover {
    opacity: 1;
    color: var(--coral);
}

/* Color utilities */
.coral { background: var(--coral); }
.purple { background: var(--purple); }
.yellow { background: var(--yellow); }
.burgundy { background: var(--burgundy); }
.teal { background: var(--teal); }
.orange { background: var(--orange); }
.dark-blue { color: var(--text-dark); }

/* ==========================================
   DECK-STYLE COMPONENTS
   ========================================== */

/* Quote Block (matches deck pages 10, 11, 13, 14) */
.quote-block {
    background: var(--coral);
    border-radius: 24px;
    padding: 3rem;
    color: var(--cream);
    position: relative;
    margin: 2rem 0;
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--green);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.8;
}

.quote-block p {
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 500;
    padding-left: 2rem;
}

.quote-block .attribution {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
    padding-left: 2rem;
}

/* Alternative quote on cream background */
.quote-block.cream {
    background: var(--cream);
    color: var(--text-dark);
}

.quote-block.cream::before {
    color: var(--coral);
}

/* Numbered List (matches deck page 2) */
.numbered-list {
    list-style: none;
    counter-reset: item;
    padding: 0;
}

.numbered-list li {
    display: flex;
    align-items: center;
    background: var(--cream);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
}

.numbered-list li::before {
    counter-increment: item;
    content: counter(item, decimal-leading-zero);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    background: var(--yellow);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.numbered-list li::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: var(--yellow);
    border-radius: 0 16px 16px 0;
}

/* Color variations for numbered list */
.numbered-list li:nth-child(1)::before,
.numbered-list li:nth-child(1)::after { background: var(--yellow); }

.numbered-list li:nth-child(2)::before,
.numbered-list li:nth-child(2)::after { background: var(--burgundy); }

.numbered-list li:nth-child(3)::before,
.numbered-list li:nth-child(3)::after { background: var(--coral); }

.numbered-list li:nth-child(4)::before,
.numbered-list li:nth-child(4)::after { background: var(--purple); }

.numbered-list li:nth-child(5)::before,
.numbered-list li:nth-child(5)::after { background: var(--text-dark); }

/* Split Section Layout (matches deck pages 8, 16, 20, 24, 27) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

.split-section .image-side img {
    border-radius: 24px;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.split-section .text-side h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.split-section .text-side ul {
    list-style: none;
    padding: 0;
}

.split-section .text-side li {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.split-section .text-side li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--purple);
    font-size: 1.2rem;
}

/* Rounded Image utility */
.rounded-image {
    border-radius: 24px;
    overflow: hidden;
}

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

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .cards {
        flex-direction: column;
        align-items: center;
        max-width: 400px;
        flex-grow: 0;
    }

    .cards .card {
        width: 100%;
        flex: 0 0 auto;
    }

    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: block;
    }

    .profile-sections {
        grid-template-columns: 1fr;
    }

    .section.full-width {
        grid-column: 1;
    }

    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.25rem;
    }

    .profile-header h1 {
        font-size: 2rem;
    }

    /* Quote block mobile */
    .quote-block {
        padding: 2rem 1.5rem;
    }

    .quote-block::before {
        font-size: 3rem;
        left: 1rem;
        top: 1rem;
    }

    .quote-block p {
        font-size: 1.1rem;
        padding-left: 1.5rem;
    }

    /* Split section mobile */
    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-section.reverse {
        direction: ltr;
    }

    .split-section .text-side h2 {
        font-size: 1.75rem;
    }

    /* Numbered list mobile */
    .numbered-list li {
        padding: 1rem;
    }

    .numbered-list li::before {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }

    /* Mobile background optimization */
    main {
        background-attachment: scroll;
        background-position: center top;
    }
}

/* Extra small screens (phones < 480px) */
@media (max-width: 480px) {
    header {
        padding: 0.75rem 4%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    main {
        padding: 0 4%;
        margin-top: 0;
    }

    .hero {
        padding: 2rem 0 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .tagline {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .cards {
        max-width: 100%;
        padding: 0;
        margin-top: 1rem;
        gap: 0.75rem;
        flex-grow: 0;
    }

    .cards .card {
        flex: 0 0 auto;
    }

    .card {
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }

    .card h2 {
        font-size: 1.1rem;
    }

    .card.coral h2,
    .card.purple h2 {
        font-size: 1.25rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    /* Profile pages */
    .profile-header {
        padding: 1.5rem 0 0.75rem;
    }

    .profile-header h1 {
        font-size: 1.6rem;
    }

    .profile-header .subtitle {
        font-size: 0.85rem;
    }

    .avatar-placeholder {
        width: 80px;
        height: 80px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .section {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }

    .section h2 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .section p,
    .section li {
        font-size: 0.9rem;
    }

    .profile-sections {
        gap: 1rem;
        padding-bottom: 2rem;
    }

    /* Quote block extra small */
    .quote-block {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        margin: 1rem 0;
    }

    .quote-block::before {
        font-size: 2.5rem;
        left: 0.75rem;
        top: 0.5rem;
    }

    .quote-block p {
        font-size: 1rem;
        padding-left: 1rem;
    }

    .quote-block .attribution {
        font-size: 0.85rem;
        padding-left: 1rem;
    }

    /* Numbered list extra small */
    .numbered-list li {
        padding: 0.875rem;
        border-radius: 12px;
        margin-bottom: 0.75rem;
    }

    .numbered-list li::before {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        margin-right: 0.875rem;
    }

    /* Split section extra small */
    .split-section {
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .split-section .text-side h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 4%;
    }

    footer p {
        font-size: 0.8rem;
    }

    .footer-url {
        font-size: 0.9rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 0.5rem 5%;
        position: relative;
    }

    main {
        margin-top: 0;
    }

    .hero {
        padding: 1rem 0;
    }

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

    .cards {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 100%;
        margin-top: 1rem;
    }

    .cards .card {
        flex: 1 1 200px;
        max-width: 250px;
    }

    .profile-header {
        padding: 1rem 0;
    }

    .avatar-placeholder {
        width: 70px;
        height: 70px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }

    .card:active {
        transform: scale(0.98);
    }

    .section:hover {
        transform: none;
    }

    .nav-link,
    .logo,
    .card,
    .section a {
        -webkit-tap-highlight-color: rgba(252, 96, 107, 0.2);
    }
}

/* Print styles */
@media print {
    header,
    footer,
    nav,
    .nav-mobile {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .card,
    .section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
