:root {
    --ghost-white: #e8e8e8;
    --ghost-gray: #1a1a1a;
    --ghost-dark: #000000;
    --ghost-purple: #8b0000;
    --ghost-glow: #ff4444;
    --ghost-fog: rgba(139, 0, 0, 0.1);
    --ghost-shadow: rgba(0, 0, 0, 0.9);
    --blood-red: #8b0000;
    --dark-red: #660000;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--ghost-dark) 0%, #1a0000 50%, var(--ghost-dark) 100%);
    background-attachment: fixed;
    color: var(--ghost-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, var(--ghost-fog) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, var(--ghost-fog) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: fogMove 20s ease-in-out infinite;
}

@keyframes fogMove {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0) translateY(0);
    }
    50% {
        opacity: 0.6;
        transform: translateX(50px) translateY(-30px);
    }
}

header {
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--ghost-purple);
    box-shadow: 0 4px 20px var(--ghost-shadow);
}

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

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--ghost-glow);
    text-shadow: 0 0 10px var(--ghost-purple), 0 0 20px var(--ghost-purple);
    letter-spacing: 3px;
    animation: ghostGlow 3s ease-in-out infinite;
}

@keyframes ghostGlow {
    0%, 100% {
        text-shadow: 0 0 10px var(--blood-red), 0 0 20px var(--blood-red);
    }
    50% {
        text-shadow: 0 0 20px var(--ghost-glow), 0 0 40px var(--ghost-glow), 0 0 60px var(--blood-red);
    }
}

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

nav a {
    color: var(--ghost-white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ghost-glow);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--ghost-glow);
}

nav a:hover::after {
    width: 100%;
}

main {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hero {
    padding: 2rem 2rem 4rem;
    margin-bottom: 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    position: relative;
}

.reaper-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.6), 0 0 60px rgba(255, 68, 68, 0.3);
    border: 2px solid var(--ghost-purple);
    transition: all 0.3s ease;
}

.reaper-img:hover {
    box-shadow: 0 0 40px rgba(139, 0, 0, 0.8), 0 0 80px rgba(255, 68, 68, 0.5);
    transform: scale(1.02);
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--ghost-glow);
    text-shadow: 0 0 20px var(--ghost-purple), 0 0 40px rgba(139, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.3rem;
    color: #b8b8b8;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(106, 90, 205, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px var(--ghost-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(106, 90, 205, 0.4);
    border-color: var(--ghost-purple);
}

.card h2 {
    color: var(--ghost-glow);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--dark-red) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid var(--blood-red);
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.btn:hover {
    background: linear-gradient(135deg, var(--ghost-glow) 0%, var(--blood-red) 100%);
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.6);
    transform: translateY(-2px);
}

.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: rgba(42, 42, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--ghost-purple);
    box-shadow: 0 8px 32px var(--ghost-shadow);
}

.form-container h2 {
    text-align: center;
    color: var(--ghost-glow);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 0 0 10px var(--ghost-purple);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ghost-white);
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(106, 90, 205, 0.5);
    border-radius: 8px;
    color: var(--ghost-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--ghost-glow);
    box-shadow: 0 0 15px rgba(157, 141, 255, 0.3);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #6bff6b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

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

.video-card {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(106, 90, 205, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(106, 90, 205, 0.4);
    border-color: var(--ghost-purple);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    background: rgba(10, 10, 10, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ghost-glow);
    font-size: 3rem;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    color: var(--ghost-glow);
    margin-bottom: 0.5rem;
}

.video-info p {
    color: #b8b8b8;
    font-size: 0.9rem;
}

.video-player {
    max-width: 1000px;
    margin: 2rem auto;
    background: rgba(10, 10, 10, 0.9);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--ghost-purple);
}

.video-player video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 32px var(--ghost-shadow);
}

footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.9);
    border-top: 2px solid var(--ghost-purple);
    margin-top: 4rem;
    color: #888;
}

/* Floating ghost animation */
.ghost-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Twitch Gaming Stream Styles */
.live-stream-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.live-stream-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(145, 71, 255, 0.4);
}

.live-stream-card .video-thumbnail {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
}

.viewer-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.offline-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #666;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.offline-stream-card {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.offline-stream-card:hover {
    opacity: 1;
}

/* Twitch Embed Styles */
iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(145, 71, 255, 0.3);
}

/* Twitch Brand Colors */
.twitch-purple {
    color: #9147ff;
}

.twitch-bg {
    background: linear-gradient(135deg, #9147ff 0%, #6441a5 100%);
}

/* Alert Messages */
.alert {
    animation: slideIn 0.5s ease-out;
}

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

/* Responsive design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

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