/* === Star Wars: KOTOR - Galactic Force Theme === */
/* Color Palette: Sith red, Jedi gold, space black, lightsaber blue */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #08080c 0%, #0c0a14 50%, #0a0810 100%);
    color: #d0d0e0;
    min-height: 100vh;
    line-height: 1.6;
}

/* --- Intro Section --- */
.intro-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    gap: 60px;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.main-character-title {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #c0a050;
    margin-bottom: 10px;
}

.game-title {
    font-size: 2.5em;
    background: linear-gradient(90deg, #e0c060, #c0a040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.character-name {
    font-size: 4em;
    color: #e8e8f0;
    text-shadow: 0 0 40px rgba(192, 160, 80, 0.3);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.tag-line {
    font-size: 1.2em;
    font-style: italic;
    color: #a090b0;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.brief-description {
    font-size: 1.1em;
    color: #b0b0c0;
    line-height: 1.8;
    border-left: 3px solid #c0a050;
    padding-left: 20px;
}

.intro-image-card {
    flex: 0 0 400px;
}

.intro-image-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 2px solid rgba(192, 160, 80, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(192, 160, 80, 0.15);
}

/* --- Scattered Grid Layout --- */
.scattered-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
    grid-auto-flow: dense;
}

/* Card Sizes - Scattered Layout */
.card-sm {
    grid-column: span 3;
}

.card-md {
    grid-column: span 4;
}

.card-lg {
    grid-column: span 6;
}

.card-tall {
    grid-column: span 4;
    grid-row: span 2;
}

.card-tall-md {
    grid-column: span 3;
    grid-row: span 2;
}

/* Base Card Style */
.card {
    padding: 28px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(192, 160, 80, 0.1);
    background: rgba(12, 10, 18, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover {
    transform: translateY(-5px) rotate(0.3deg);
    box-shadow: 0 15px 40px rgba(192, 160, 80, 0.12);
}

/* Card Variants - Star Wars Theme */
.bg-dark {
    background: linear-gradient(135deg, rgba(15, 12, 22, 0.95) 0%, rgba(10, 8, 15, 0.98) 100%);
}

.bg-sith {
    background: linear-gradient(135deg, rgba(120, 30, 30, 0.2) 0%, rgba(15, 10, 12, 0.95) 100%);
    border-top: 2px solid rgba(200, 60, 60, 0.5);
}

.bg-jedi {
    background: linear-gradient(135deg, rgba(80, 100, 140, 0.2) 0%, rgba(12, 14, 20, 0.95) 100%);
    border-top: 2px solid rgba(100, 150, 220, 0.4);
}

.villain-card {
    background: linear-gradient(135deg, rgba(100, 20, 20, 0.3) 0%, rgba(12, 8, 10, 0.98) 100%);
    border: 1px solid rgba(180, 50, 50, 0.3);
}

.companion-card {
    background: linear-gradient(to bottom right, rgba(20, 25, 35, 0.95), rgba(12, 10, 18, 0.98));
    border-left: 4px solid #c0a050;
}

.revelation-card {
    background: linear-gradient(135deg, rgba(150, 100, 50, 0.15) 0%, rgba(12, 10, 15, 0.98) 100%);
    border: 1px solid rgba(200, 150, 80, 0.3);
}

.choice-card {
    background: linear-gradient(to bottom right, rgba(25, 20, 30, 0.95), rgba(15, 12, 20, 0.98));
    border-left: 4px solid #8090c0;
}

.summary-card {
    background: linear-gradient(135deg, rgba(192, 160, 80, 0.08) 0%, rgba(10, 8, 15, 0.95) 100%);
    border: 1px solid rgba(192, 160, 80, 0.2);
    text-align: center;
}

/* Typography inside cards */
h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #e0c070, #c0a050);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid rgba(192, 160, 80, 0.2);
    padding-bottom: 10px;
    letter-spacing: 1px;
}

h4 {
    font-size: 1.25em;
    margin-bottom: 12px;
    color: #d0b860;
}

.card p {
    margin-bottom: 15px;
    text-align: left;
    font-size: 1em;
    color: #c8c8d8;
    line-height: 1.75;
}

.card b {
    color: #d0b860;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.card ul {
    margin-left: 10px;
    list-style: none;
}

.card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #b8b8c8;
}

.card ul li::before {
    content: "✦";
    color: #c0a050;
    position: absolute;
    left: 0;
    font-size: 0.8em;
}

.card ul li b {
    display: inline;
    color: #d8c080;
}

.note {
    font-size: 0.88em;
    font-style: italic;
    color: #9090a0;
    display: block;
    margin-top: 12px;
    line-height: 1.6;
}

/* --- Quote Section --- */
.quote-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
    text-align: center;
}

.quote-section blockquote {
    font-size: 1.8em;
    font-style: italic;
    color: #d0b860;
    padding: 50px 60px;
    position: relative;
    line-height: 1.6;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.quote-section blockquote::before {
    content: '"';
    font-size: 5em;
    color: rgba(192, 160, 80, 0.2);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
}

.quote-section cite {
    display: block;
    margin-top: 25px;
    font-size: 0.6em;
    color: #8090c0;
    font-style: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Gallery --- */
.gallery {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 2px solid rgba(192, 160, 80, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gallery img:hover {
    transform: scale(1.03) rotate(0.5deg);
    box-shadow: 0 12px 35px rgba(192, 160, 80, 0.2);
    border-color: rgba(224, 192, 100, 0.5);
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .brief-description {
        border-left: none;
        border-top: 3px solid #c0a050;
        padding-left: 0;
        padding-top: 20px;
    }

    .intro-image-card {
        flex: 0 0 auto;
    }

    .scattered-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .card-sm {
        grid-column: span 3;
    }

    .card-md {
        grid-column: span 3;
    }

    .card-lg {
        grid-column: span 6;
    }

    .card-tall {
        grid-column: span 3;
    }

    .card-tall-md {
        grid-column: span 3;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .character-name {
        font-size: 2.5em;
    }

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

    .card-sm,
    .card-md,
    .card-lg,
    .card-tall,
    .card-tall-md {
        grid-column: span 1;
        grid-row: span 1;
    }

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

    .quote-section blockquote {
        font-size: 1.3em;
        padding: 30px;
    }
}
