/* It Takes a Wolf Casting Call Styles */
:root {
    --primary-red: #cc3333;
    --dark-red: #9a2525;
    --gold: #d4af37;
    --dark-bg: #1a1a1a;
    --light-text: #f5f5f5;
    --medium-text: #cccccc;
    --dark-text: #333333;
}

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--light-text);
    background: url('/images/background.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(45, 27, 27, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    margin-top: 20px;
    margin-bottom: 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gold);
    margin: 1.5em 0 0.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h1 {
    font-size: 2.5em;
    text-align: center;
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}

h2 {
    font-size: 2em;
    color: var(--primary-red);
    border-left: 5px solid var(--gold);
    padding-left: 15px;
}

h3 {
    font-size: 1.5em;
    color: var(--gold);
}

p {
    margin-bottom: 1em;
    text-align: left;
}

.hero-image {
    text-align: center;
    margin: 2em 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.content-image {
    text-align: center;
    margin: 2em 0;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

ul, ol {
    margin: 1em 0 1em 2em;
}

li {
    margin-bottom: 0.5em;
}

strong {
    color: var(--gold);
    font-weight: bold;
}

em {
    color: var(--medium-text);
    font-style: italic;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--primary-red), var(--gold), var(--primary-red));
    margin: 2em 0;
    border-radius: 1px;
}

/* Character sections */
h3:has(+ p:contains("Species:")) {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 2em;
}

/* Content warning section */
h2:contains("Content Warnings") + ul {
    background: rgba(204, 51, 51, 0.1);
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    padding: 1em;
    margin: 1em 0;
}

/* Audition parameters */
h2:contains("Audition Parameters") ~ h3 {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    body {
        font-size: 16px;
    }
}

/* Link styling */
a {
    color: var(--gold);
    text-decoration: underline;
}

a:hover {
    color: var(--primary-red);
}

/* Code blocks and quotes */
code {
    background: rgba(255,255,255,0.1);
    padding: 2px 5px;
    border-radius: 3px;
    color: var(--gold);
}

blockquote {
    border-left: 4px solid var(--primary-red);
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: var(--medium-text);
}

/* Character navigation */
.character-nav {
    margin-bottom: 2em;
}

.character-nav a {
    display: inline-block;
    padding: 10px 15px;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.character-nav a:hover {
    background: var(--dark-red);
}

/* Character page styling */
.character-page h1 {
    color: var(--primary-red);
    border-bottom: 3px solid var(--gold);
    text-align: left;
}

/* Character links on main page */
h3:has(+ p a[href*="/characters/"]) {
    margin-top: 2em;
}

/* Character block spacing */
p:has(a[href*="/characters/"]) {
    margin-bottom: 2em;
}

/* Character link styling */
a[href*="/characters/"] {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.6em;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

a[href*="/characters/"]:hover {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

/* Character summary styling */
p:has(a[href*="/characters/"]) + p em {
    display: block;
    margin-top: 0.5em;
    color: var(--medium-text);
}

/* Audition line styling */
h4:contains("Line") {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-red);
}

/* Character blocks centering */
.character-block {
    text-align: center;
    margin: 2em auto;
    max-width: 600px;
}

.character-block h3 {
    text-align: center;
}

.character-block p {
    text-align: center;
}

/* Center character sections on main page */
h2:contains("Characters") ~ h3,
h2:contains("Characters") ~ p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

/* Center individual character blocks */
h3:has(+ p a[href*="/characters/"]),
p:has(a[href*="/characters/"]),
p:has(a[href*="/characters/"]) + p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

/* Footer styling */
.footer {
    text-align: center;
    font-style: italic;
    color: var(--gold);
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid var(--primary-red);
    font-size: 0.9em;
}

/* Submission button styling */
.submission-button {
    display: inline-block;
    background-color: #FFD700;
    color: #000;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid #FFA500;
}

.submission-button:hover {
    background-color: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    color: #000;
}