/* Color Palette & Variables */
:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --primary-gold: #C4A464; /* Logodaki altın sarısı */
    --primary-gold-hover: #e0be77;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --border-color: rgba(196, 164, 100, 0.2);
    --glass-bg: rgba(17, 17, 17, 0.7);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-harbi {
    color: var(--text-light);
}

.logo-dubs {
    color: var(--primary-gold);
    font-style: italic;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: radial-gradient(circle at center, #1a150e 0%, var(--bg-dark) 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-out;
}

.hero-main-logo {
    max-width: 450px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(196, 164, 100, 0.4));
    animation: fadeIn 1.5s ease-out;
}

.hero-logo-placeholder h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(45deg, var(--text-light), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    color: var(--primary-gold);
    text-decoration: none;
    border: 2px solid var(--primary-gold);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(196, 164, 100, 0.4);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.section-title span {
    color: var(--primary-gold);
}

.about-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.about-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.about-card strong {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    margin-top: 10px;
    display: inline-block;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: var(--primary-gold);
}

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

/* Dubs Section (Video Grid) */
.dubs {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.dubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: block;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(196, 164, 100, 0.15);
    border-color: var(--primary-gold);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.episode-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 4px;
}

.video-info {
    padding: 20px;
}

.anime-title {
    color: var(--primary-gold);
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-title {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 400;
}

/* --- Video and Inner Page Styles --- */
.video-page .navbar,
.page-animes .navbar,
.page-anime-details .navbar {
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.player-section {
    padding: 120px 0 60px;
    min-height: calc(100vh - 80px);
}

.back-btn {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--primary-gold);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-details {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.video-page-title {
    font-size: 2rem;
    color: var(--text-light);
}

.episode-badge-large {
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 6px;
}

.anime-name {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-description {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.video-description h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.video-description p {
    color: #ccc;
    line-height: 1.8;
}

.upload-date {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666 !important;
}

/* --- Admin & Dashboard Styles --- */
.admin-bg {
    background: radial-gradient(circle at top right, #1a150e 0%, var(--bg-dark) 50%);
    min-height: 100vh;
}

.admin-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary-gold);
}

.error-msg {
    color: #ff4d4d;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

.dashboard-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.admin-video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(196, 164, 100, 0.1);
}

.admin-video-item h4 {
    color: var(--primary-gold);
    font-size: 1rem;
    margin-bottom: 5px;
}

.admin-video-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-delete {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}
.btn-delete:hover {
    background: #cc0000;
}
