:root {
    --tmnt-green: #4CAF50;
    --tmnt-dark-green: #2E7D32;
    --leo-blue: #2196F3;
    --don-purple: #9C27B0;
    --raph-red: #F44336;
    --mike-orange: #FF9800;
    --shredder-purple: #4A148C;
    --bg-dark: #1a1a1a;
    --bg-light: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--tmnt-green);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--tmnt-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--tmnt-green);
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 60vh;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--tmnt-green);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: scale(1.2);
}

.btn-primary {
    background-color: var(--tmnt-green);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--tmnt-dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--tmnt-green);
    border: 2px solid var(--tmnt-green);
}

.btn-secondary:hover {
    background-color: var(--tmnt-green);
    color: var(--text-light);
}

.quote-display {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid var(--tmnt-green);
    border-radius: 4px;
    min-height: 60px;
    display: none;
}

.quote-display.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Hero Image */
.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.turtle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.turtle-mask {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.turtle-mask::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 100%;
    background-position: center;
}

.leo { background-color: var(--leo-blue); }
.don { background-color: var(--don-purple); }
.raph { background-color: var(--raph-red); }
.mike { background-color: var(--mike-orange); }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.page-content {
    padding-top: 4rem;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--tmnt-green);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Features */
.features {
    padding: 4rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background-color: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--tmnt-green);
}

.feature-link {
    color: var(--tmnt-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: var(--tmnt-dark-green);
}

/* Weapons Showcase */
.weapons-showcase {
    padding: 4rem 0;
    background-color: rgba(255, 255, 255, 0.02);
}

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.weapon-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.weapon-card:hover {
    transform: scale(1.05);
    border-color: var(--tmnt-green);
}

.weapon-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.weapon-wielder {
    color: var(--tmnt-green);
    margin-bottom: 1rem;
}

/* Search Section */
.search-section {
    padding: 4rem 0;
}

.search-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--tmnt-green);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-search {
    background-color: var(--tmnt-green);
    color: var(--text-light);
    padding: 0.75rem 2rem;
}

.search-results {
    max-width: 800px;
    margin: 0 auto;
}

.search-result-section {
    margin-bottom: 2rem;
}

.search-result-section h3 {
    color: var(--tmnt-green);
    margin-bottom: 1rem;
}

.search-result-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Turtle Page Styles */
.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.page-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 3rem;
}

.turtle-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.turtle-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.turtle-btn:hover {
    transform: translateY(-2px);
}

.turtle-btn.active {
    background-color: var(--tmnt-green);
    border-color: var(--tmnt-green);
}

.leo-btn:hover, .leo-btn.active { background-color: var(--leo-blue); border-color: var(--leo-blue); }
.don-btn:hover, .don-btn.active { background-color: var(--don-purple); border-color: var(--don-purple); }
.raph-btn:hover, .raph-btn.active { background-color: var(--raph-red); border-color: var(--raph-red); }
.mike-btn:hover, .mike-btn.active { background-color: var(--mike-orange); border-color: var(--mike-orange); }

.turtles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
}

.turtle-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    min-height: 180px;
}

/* Turtle Image Styles */
.turtle-image-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.leonardo .turtle-image-container {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.1));
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.donatello .turtle-image-container {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.1));
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.raphael .turtle-image-container {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.michelangelo .turtle-image-container {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1));
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.turtle-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.turtle-info {
    flex: 1;
}

.turtle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.turtle-card.leonardo:hover { 
    border-color: var(--leo-blue);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
}
.turtle-card.donatello:hover { 
    border-color: var(--don-purple);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.3);
}
.turtle-card.raphael:hover { 
    border-color: var(--raph-red);
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.3);
}
.turtle-card.michelangelo:hover { 
    border-color: var(--mike-orange);
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.3);
}

.turtle-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.turtle-card p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.turtle-card p strong {
    color: rgba(255, 255, 255, 0.9);
}

.turtle-card p em {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.turtle-card .color-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-badge.blue { background-color: var(--leo-blue); }
.color-badge.purple { background-color: var(--don-purple); }
.color-badge.red { background-color: var(--raph-red); }
.color-badge.orange { background-color: var(--mike-orange); }

/* Villains Page */
.villain-title {
    color: var(--shredder-purple);
}

.villains-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
}

.villain-card {
    background-color: rgba(74, 20, 140, 0.1);
    border: 2px solid var(--shredder-purple);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Villain Image Styles */
.villain-image-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.3), rgba(74, 20, 140, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.3);
}

.villain-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.villain-info {
    flex: 1;
}

.villain-info h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.villain-info p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.villain-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(74, 20, 140, 0.5);
}

.villain-card h2 {
    color: var(--shredder-purple);
    margin-bottom: 1rem;
}

.villain-abilities {
    margin-top: 1rem;
}

.ability-tag {
    display: inline-block;
    background-color: rgba(74, 20, 140, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    margin: 0.25rem;
    font-size: 0.875rem;
}

.threat-level {
    margin-top: 1rem;
    font-weight: bold;
}

.threat-extreme {
    color: #ff1744;
}

.threat-high {
    color: #ff9100;
}

.threat-moderate {
    color: #ffc400;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background-color: #242424;
    margin: 0 auto;
    padding: 0;
    border: 2px solid rgba(74, 20, 140, 0.6);
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(74, 20, 140, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

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

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.close:hover {
    color: #fff;
    background: var(--shredder-purple);
    transform: rotate(90deg);
}

/* Modal Body Content */
#villainModalContent {
    padding: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.4), rgba(74, 20, 140, 0.2));
    border-bottom: 2px solid rgba(74, 20, 140, 0.5);
}

.modal-villain-image {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(74, 20, 140, 0.3);
}

.modal-villain-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-villain-title {
    flex: 1;
}

.modal-villain-title h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.modal-villain-title p {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 1.1rem;
}

.modal-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
}

.modal-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(74, 20, 140, 0.2);
}

.modal-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.modal-section p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-section p strong {
    color: #fff;
    font-weight: 600;
}

.modal-abilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-abilities .ability-tag {
    background: rgba(74, 20, 140, 0.6);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Turtle Modal Styles */
.turtle-modal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.turtle-modal-header.leonardo {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.4), rgba(33, 150, 243, 0.2));
    border-bottom-color: rgba(33, 150, 243, 0.5);
}

.turtle-modal-header.donatello {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.4), rgba(156, 39, 176, 0.2));
    border-bottom-color: rgba(156, 39, 176, 0.5);
}

.turtle-modal-header.raphael {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.4), rgba(244, 67, 54, 0.2));
    border-bottom-color: rgba(244, 67, 54, 0.5);
}

.turtle-modal-header.michelangelo {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.4), rgba(255, 152, 0, 0.2));
    border-bottom-color: rgba(255, 152, 0, 0.5);
}

.modal-turtle-image {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-turtle-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-turtle-title {
    flex: 1;
}

.modal-turtle-title h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.modal-turtle-title .color-badge {
    font-size: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.catchphrase {
    font-size: 1.3rem;
    font-style: italic;
    color: #fff;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Episode Modal Styles */
.episode-modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(76, 175, 80, 0.2));
    border-bottom: 2px solid rgba(76, 175, 80, 0.5);
}

.episode-modal-info h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.episode-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.episode-badge {
    background: var(--tmnt-green);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.air-date {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Cast Grid */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cast-member {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.cast-member:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cast-member.main {
    border-color: var(--tmnt-green);
    background: rgba(76, 175, 80, 0.1);
}

.cast-member.recurring {
    border-color: var(--leo-blue);
    background: rgba(33, 150, 243, 0.1);
}

.cast-member.guest {
    border-color: var(--mike-orange);
    background: rgba(255, 152, 0, 0.1);
}

.character-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.voice-actor {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.role-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.role-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cast-member.main .role-badge {
    background: var(--tmnt-green);
}

.cast-member.recurring .role-badge {
    background: var(--leo-blue);
}

.cast-member.guest .role-badge {
    background: var(--mike-orange);
}

.modal-villains {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.villain-tag.large {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

/* Episode card hover effect */
.episode-card {
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
}

.episode-card:hover {
    background-color: rgba(76, 175, 80, 0.05);
    border-left-color: var(--tmnt-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.episode-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.view-details-btn {
    background-color: var(--tmnt-green);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background-color: var(--tmnt-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.quick-view-btn {
    background-color: transparent;
    color: var(--tmnt-green);
    border: 2px solid var(--tmnt-green);
}

.quick-view-btn:hover {
    background-color: var(--tmnt-green);
    color: white;
}

/* Episode Detail Page Styles */
.back-button-container {
    margin-bottom: 2rem;
}

.episode-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.episode-detail-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(76, 175, 80, 0.3);
}

.episode-detail-header h1 {
    font-size: 3rem;
    color: var(--tmnt-green);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.episode-meta-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.episode-badge.large {
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
}

.air-date.large {
    font-size: 1.1rem;
}

.detail-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.detail-section h2 {
    color: var(--tmnt-green);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.synopsis-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.villains-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.villain-tag.extra-large {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
}

.cast-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cast-member-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.cast-member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cast-member-card.main {
    border-color: var(--tmnt-green);
    background: rgba(76, 175, 80, 0.15);
}

.cast-member-card.recurring {
    border-color: var(--leo-blue);
    background: rgba(33, 150, 243, 0.15);
}

.cast-member-card.guest {
    border-color: var(--mike-orange);
    background: rgba(255, 152, 0, 0.15);
}

.cast-member-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.cast-member-content .voice-actor {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.role-badge.large {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.credit-item h3 {
    color: var(--tmnt-green);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.credit-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.notes-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
}

.notes-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.error-message {
    text-align: center;
    padding: 3rem;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 15px;
}

.error-message h2 {
    color: var(--raph-red);
    margin-bottom: 1rem;
}

.error-message a {
    color: var(--tmnt-green);
    text-decoration: underline;
}

/* Episodes Page */
.episode-filters {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 8px;
}

.btn-view {
    padding: 0.5rem 1rem;
    border: none;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-view:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-view.active {
    background-color: var(--tmnt-green);
    color: #fff;
}

.season-filter,
.episode-search {
    padding: 0.5rem 1rem;
    border: 2px solid var(--tmnt-green);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.episodes-list {
    max-width: 800px;
    margin: 0 auto;
}

.episode-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--tmnt-green);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.episode-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.episode-title {
    font-size: 1.25rem;
    color: var(--tmnt-green);
}

.episode-info {
    color: #999;
    font-size: 0.875rem;
}

.episode-synopsis {
    margin-top: 0.5rem;
    line-height: 1.6;
}

.episode-villains {
    margin-top: 1rem;
}

.villain-tag {
    display: inline-block;
    background-color: rgba(74, 20, 140, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* Episode Table View */
.episodes-table-container {
    overflow-x: auto;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.episodes-table {
    width: 100%;
    border-collapse: collapse;
}

.episodes-table thead {
    background-color: rgba(76, 175, 80, 0.15);
    border-bottom: 2px solid var(--tmnt-green);
}

.episodes-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: var(--tmnt-green);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.episodes-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.episodes-table tbody tr:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

.episodes-table td {
    padding: 1rem;
    vertical-align: top;
}

.episode-number-cell {
    width: 80px;
    font-weight: 600;
    color: var(--tmnt-green);
}

.episode-title-cell {
    min-width: 200px;
}

.episode-title-link {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.episode-title-link:hover {
    color: var(--tmnt-green);
}

.episode-date-cell {
    width: 120px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.episode-synopsis-cell {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.9rem;
}

.episode-villains-cell {
    width: 200px;
}

.episode-actions-cell {
    width: 220px;
}

.episode-actions-cell .btn {
    margin: 0.2rem;
}

.villain-badge {
    display: inline-block;
    background-color: rgba(74, 20, 140, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin: 0.1rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Episode Thumbnail (for future use) */
.episode-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.episode-thumbnail-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.1));
    border-radius: 4px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--tmnt-green);
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.btn-pagination {
    background-color: var(--tmnt-green);
    color: var(--text-light);
    padding: 0.5rem 1rem;
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #111;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--tmnt-green);
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        position: relative;
        margin-top: 2rem;
        opacity: 0.5;
    }

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

    .turtle-mask {
        width: 100px;
        height: 100px;
    }

    .feature-grid,
    .turtles-grid,
    .villains-grid {
        grid-template-columns: 1fr;
    }

    .search-container {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
    }
    
    .turtle-card,
    .villain-card {
        flex-direction: column;
        text-align: center;
    }
    
    .turtle-info,
    .villain-info {
        text-align: center;
    }
    
    .turtle-image-container,
    .villain-image-container {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .turtle-card,
    .villain-card {
        padding: 1rem;
        min-height: auto;
    }
    
    /* Modal responsive */
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-villain-title h2 {
        font-size: 2rem;
    }
    
    .modal-villain-image {
        margin: 0 auto;
    }
    
    /* Responsive table view */
    .episodes-table-container {
        border-radius: 0;
    }
    
    .episodes-table {
        font-size: 0.85rem;
    }
    
    .episodes-table th,
    .episodes-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .episode-synopsis-cell,
    .episode-villains-cell {
        display: none;
    }
    
    .episode-actions-cell {
        width: auto;
    }
    
    .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Stack action buttons on mobile */
    .episode-actions-cell {
        width: 100px;
    }
    
    .episode-actions-cell .btn {
        display: block;
        width: 100%;
        margin: 0.2rem 0;
    }
    
    /* Ensure modal content is viewable on mobile */
    .modal-content {
        width: 95%;
    }
}