/* SpinGuild.xyz - Unique Medieval Guild Theme */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --guild-primary: #d4af37;
    --guild-secondary: #8b4513;
    --guild-accent: #cd853f;
    --guild-bg: #1a1a1a;
    --guild-card: #2d2d2d;
    --guild-text: #f5f5dc;
    --guild-gold: #ffd700;
    --guild-silver: #c0c0c0;
    --guild-bronze: #cd7f32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--guild-bg) 0%, #0f0f0f 50%, var(--guild-bg) 100%);
    color: var(--guild-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 69, 19, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--guild-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--guild-primary);
    text-decoration: none;
    text-shadow: 
        0 0 10px var(--guild-primary),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.logo::after {
    content: '⚔️';
    position: absolute;
    top: -10px;
    right: -30px;
    font-size: 1.5rem;
    animation: swordGlow 2s ease-in-out infinite alternate;
}

@keyframes swordGlow {
    0% { text-shadow: 0 0 5px var(--guild-gold); }
    100% { text-shadow: 0 0 15px var(--guild-gold); }
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
}

.hamburger {
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--guild-primary), var(--guild-gold));
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--guild-primary);
}

.hamburger.active:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
}

.hamburger.active:nth-child(2) {
    opacity: 0;
}

.hamburger.active:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--guild-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
}

.nav-menu a:hover {
    color: var(--guild-primary);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--guild-primary), var(--guild-gold));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover::before {
    opacity: 0.1;
}

/* Main Content */
.main-content {
    margin-top: 120px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 69, 19, 0.1));
    border-radius: 25px;
    margin-bottom: 4rem;
    border: 3px solid var(--guild-primary);
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.3),
        inset 0 0 40px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--guild-primary);
    margin-bottom: 1.5rem;
    text-shadow: 
        0 0 20px var(--guild-primary),
        3px 3px 6px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-style: italic;
}

/* Game Container */
.game-container {
    background: linear-gradient(135deg, var(--guild-card), rgba(212, 175, 55, 0.05));
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 3px solid var(--guild-primary);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.2),
        inset 0 0 30px rgba(212, 175, 55, 0.05);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-container:hover::before {
    opacity: 1;
}

.game-container h2 {
    color: var(--guild-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 15px var(--guild-primary);
}

.game-embed {
    width: 100%;
    max-width: 900px;
    height: 550px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--guild-secondary);
    box-shadow: 0 0 25px rgba(139, 69, 19, 0.4);
    position: relative;
}

.game-embed::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--guild-primary), var(--guild-gold), var(--guild-bronze), var(--guild-primary));
    border-radius: 15px;
    z-index: -1;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.game-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Notice Boxes */
.notice-box {
    background: linear-gradient(135deg, var(--guild-card), rgba(212, 175, 55, 0.1));
    border: 2px solid var(--guild-primary);
    border-radius: 15px;
    padding: 2rem;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.notice-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.notice-box:hover::before {
    left: 100%;
}

.notice-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.notice-box h3 {
    color: var(--guild-gold);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 10px var(--guild-gold);
}

.notice-box p {
    color: var(--guild-text);
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.age-modal-content {
    background: linear-gradient(135deg, var(--guild-card), rgba(212, 175, 55, 0.1));
    margin: 15% auto;
    padding: 3rem;
    border: 3px solid var(--guild-primary);
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 
        0 0 50px rgba(212, 175, 55, 0.5),
        inset 0 0 50px rgba(212, 175, 55, 0.1);
    position: relative;
}

.age-modal-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--guild-primary), var(--guild-gold), var(--guild-bronze), var(--guild-primary));
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 4s linear infinite;
}

.age-modal h2 {
    color: var(--guild-primary);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 25px var(--guild-primary);
}

.age-modal p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.age-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.age-btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 15px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.age-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.age-btn:hover::before {
    left: 100%;
}

.age-btn.yes {
    background: linear-gradient(45deg, var(--guild-primary), var(--guild-gold));
    color: var(--guild-bg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.age-btn.yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
}

.age-btn.no {
    background: linear-gradient(45deg, var(--guild-secondary), #a0522d);
    color: white;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.4);
}

.age-btn.no:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.6);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--guild-bg), rgba(212, 175, 55, 0.05));
    border-top: 3px solid var(--guild-primary);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--guild-primary), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--guild-text);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.footer-links a:hover {
    color: var(--guild-primary);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.footer p {
    opacity: 0.7;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(45, 45, 45, 0.98), rgba(26, 26, 26, 0.98));
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        border-top: 3px solid var(--guild-primary);
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.8rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .game-embed {
        height: 450px;
    }
    
    .age-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .game-embed {
        height: 350px;
    }
    
    .age-modal-content {
        margin: 25% auto;
        padding: 2rem;
    }
    
    .age-modal h2 {
        font-size: 2rem;
    }
}