/* Dark Fantasy Theme for Mythic Knights */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #ffd700;
    --accent-light: #ffed4e;
    --text-primary: #ffffff;
    --text-secondary: #d4af37;
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a1a;
    --bg-light: #2d2d2d;
    --border-color: #d4af37;
    --error-color: #ff4444;
    --success-color: #4caf50;
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.9);
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.4);
    --gradient-royal: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
}

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

body {
    font-family: 'Crimson Text', serif;
    background: var(--gradient-royal);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2400px;
    height: 800px;
    background: url('assets/images/e59bb1f4-724e-4799-9705-a8a49ee52f4a.png') no-repeat center;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
    filter: brightness(1.2) contrast(1.1);
}

/* Header Styles */
.header {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--gradient-royal);
    border-bottom: 3px solid var(--accent-color);
    box-shadow: var(--shadow-gold);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo-container i {
    font-size: 3rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: pulse 2s infinite;
}

.logo-image {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    letter-spacing: 3px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-bottom: 2px solid var(--accent-color);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: var(--text-primary);
}

.hero-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 1s ease-out 0.3s both;
    font-weight: 600;
}

/* Video Section */
.video-section {
    background: var(--gradient-royal);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
}

.video-container h3 {
    font-family: 'Cinzel', serif;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.video-container h3 i {
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
}

.promo-video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-gold);
    display: block;
    margin: 0 auto;
    border: 2px solid var(--border-color);
}

.discord-cta {
    text-align: center;
    margin-top: 2rem;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #5865F2;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    border: 2px solid transparent;
}

.discord-link:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.6);
    border-color: var(--accent-color);
}

.discord-link i {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Achievements Ticker */
.achievements-ticker {
    background: var(--gradient-royal);
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-gold);
}

.achievements-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    animation: shimmer 3s infinite;
}

.achievements-ticker::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    animation: shimmer 3s infinite reverse;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2rem;
    margin: 0 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    white-space: nowrap;
    min-width: fit-content;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.achievement-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.achievement-item span:first-of-type {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.achievement-item .date {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Pause animation on hover */
.achievements-ticker:hover .ticker-content {
    animation-play-state: paused;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Application Section */
.application-section {
    background: var(--gradient-royal);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.application-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    letter-spacing: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Form Styles */
.migration-form {
    position: relative;
    z-index: 1;
}

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

.form-group {
    position: relative;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.form-group label i {
    color: var(--accent-color);
    font-size: 0.9rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    background: var(--bg-medium);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--error-color);
}

.form-group.error .error-message {
    display: block;
}

/* CAPTCHA */
.captcha-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    grid-column: 1 / -1;
}

.captcha-group .error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    text-align: center;
}

.duplicate-warning {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    grid-column: 1 / -1;
}

/* Discord Authentication Styles */
.discord-auth-section {
    margin-bottom: 2rem;
}

.auth-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #ffd700;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.auth-card h3 {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth-card p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.auth-status {
    margin: 1.5rem 0;
}

.discord-login-btn {
    background: #5865F2;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-login-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid #5865F2;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.user-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #5865F2;
}

.user-details {
    flex: 1;
    text-align: left;
    margin-left: 1rem;
}

.user-details strong {
    color: #5865F2;
    font-size: 1.1rem;
}

.user-details small {
    color: #999;
    font-size: 0.9rem;
}

.logout-btn {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.3);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .user-details {
        margin-left: 0;
        text-align: center;
    }
    
    .migration-form {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-content p {
        font-size: 1rem;
    }
    
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .social-links a {
        font-size: 1.2rem;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-card {
        padding: 1rem;
    }
    
    .migration-form {
        padding: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Button Styles */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--accent-color);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffed4e 0%, var(--accent-color) 100%);
}

.btn-secondary {
    background: var(--bg-medium);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card,
.requirements-card {
    background: var(--gradient-royal);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.info-card::before,
.requirements-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
}

.info-card h3,
.requirements-card h3 {
    font-family: 'Cinzel', serif;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.info-card h3 i,
.requirements-card h3 i {
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
}

.info-card ul,
.requirements-card ul {
    list-style: none;
    padding: 0;
}

.info-card li,
.requirements-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.info-card li::before,
.requirements-card li::before {
    content: '👑';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--gradient-royal);
    border-top: 3px solid var(--accent-color);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 -4px 20px rgba(255, 215, 0, 0.2);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--gradient-royal);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--accent-color);
    position: relative;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.6));
}

.modal-header h3 {
    font-family: 'Cinzel', serif;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.modal-body {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-footer {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        height: 300px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .hero-section {
        height: 250px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
