/* Anstalt Theme - Kneipe des Wahnsinns */
/* Bier, Blödsinn und geistige Grenzerfahrungen */

/* Theme Modal Styles */
.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.theme-modal-content {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #D2691E 100%);
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.theme-modal-content::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"><text y="50" font-size="15" fill="rgba(255,215,0,0.2)">🍺🍻🥴🍺🍻🥴</text></svg>') repeat;
    animation: beerFloat 15s linear infinite;
}

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

.theme-title {
    font-family: 'Butcherman', cursive;
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px #8B4513, 6px 6px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.theme-subtitle {
    font-family: 'Indie Flower', cursive;
    font-size: 1.3rem;
    color: #FFF8DC;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.theme-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.theme-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.theme-option:hover {
    transform: scale(1.05);
}

.theme-option.selected {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.theme-preview {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.garden-preview {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 50%, #90EE90 100%);
    color: white;
}

.asylum-preview {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 50%, #DEB887 100%);
    color: #2F1B14;
}

.preview-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.theme-preview h3 {
    font-family: 'Griffy', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.theme-preview p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.preview-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-features span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.confirm-theme-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Butcherman', cursive;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 2;
}

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

.confirm-theme-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-switch-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

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

.theme-switch-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6);
}

/* Asylum Theme Overrides */
body.asylum-theme {
    --primary-color: #8B4513;
    --secondary-color: #CD853F;
    --accent-color: #FFD700;
    --text-color: #2F1B14;
    --light-bg: #FFF8DC;
    --dark-bg: #2F1B14;
    --gradient-bg: linear-gradient(135deg, #8B4513 0%, #CD853F 50%, #DEB887 100%);
}

body.asylum-theme .header {
    background: var(--gradient-bg);
}

body.asylum-theme .header::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="20" fill="rgba(255,215,0,0.2)">🍺🍻🥴🍺🍻🥴</text></svg>') repeat;
    animation: beerFloat 20s linear infinite;
}

body.asylum-theme .logo-text {
    font-family: 'Butcherman', cursive;
    text-shadow: 3px 3px 0px #2F1B14, 0 0 10px rgba(255, 215, 0, 0.5);
}

body.asylum-theme .logo-subtitle {
    font-family: 'Griffy', cursive;
}

body.asylum-theme .tagline {
    font-family: 'Indie Flower', cursive;
    font-size: 1.3rem;
    font-weight: bold;
}

body.asylum-theme .navigation {
    background: var(--primary-color);
}

body.asylum-theme .nav-link:hover,
body.asylum-theme .nav-link.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

body.asylum-theme .hero-section {
    background: linear-gradient(135deg, #FFF8DC 0%, #F5DEB3 50%, #DEB887 100%);
}

body.asylum-theme .hero-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(139,69,19,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(139,69,19,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(139,69,19,0.1)"/><text x="10" y="30" font-size="8" fill="rgba(139,69,19,0.1)">🍺</text><text x="70" y="70" font-size="6" fill="rgba(139,69,19,0.1)">🍻</text></svg>') repeat;
}

body.asylum-theme .hero-title {
    color: var(--primary-color);
    font-family: 'Butcherman', cursive;
}

body.asylum-theme .hero-quote {
    background: rgba(255, 255, 255, 0.9);
    border-left: 5px solid var(--accent-color);
}

body.asylum-theme .cta-button {
    background: var(--accent-color);
    color: var(--primary-color);
    font-family: 'Butcherman', cursive;
    font-weight: bold;
}

body.asylum-theme .cta-button:hover {
    background: #FFA500;
}

/* Beer Sprite Animations */
.beer-sprite {
    font-size: 3rem;
    margin: 1rem 0;
    animation: beerBounce 2s infinite;
    opacity: 0.8;
    cursor: pointer;
}

.beer-sprite:nth-child(2) {
    animation-delay: 0.5s;
}

.beer-sprite:nth-child(3) {
    animation-delay: 1s;
}

@keyframes beerBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-20px) rotate(5deg);
    }
    60% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

/* Philosophy Section Asylum Theme */
body.asylum-theme .philosophy-section {
    background: white;
}

body.asylum-theme .section-title {
    font-family: 'Butcherman', cursive;
    color: var(--primary-color);
}

body.asylum-theme .section-title::after {
    background: var(--accent-color);
}

body.asylum-theme .philosophy-card {
    border: 3px solid transparent;
}

body.asylum-theme .philosophy-card::before {
    background: var(--gradient-bg);
}

body.asylum-theme .philosophy-card:hover {
    border-color: var(--accent-color);
}

body.asylum-theme .philosophy-card h3 {
    font-family: 'Griffy', cursive;
    color: var(--primary-color);
}

body.asylum-theme .read-more {
    background: var(--primary-color);
    color: white;
}

body.asylum-theme .read-more:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Chronicles Section Asylum Theme */
body.asylum-theme .chronicles-section {
    background: var(--light-bg);
}

body.asylum-theme .timeline::before {
    background: var(--accent-color);
}

body.asylum-theme .timeline-item::before {
    background: var(--accent-color);
}

body.asylum-theme .timeline-date {
    color: var(--accent-color);
    font-family: 'Griffy', cursive;
}

body.asylum-theme .timeline-content h3 {
    color: var(--primary-color);
    font-family: 'Griffy', cursive;
}

/* Gallery Section Asylum Theme */
body.asylum-theme .gallery-section {
    background: white;
}

body.asylum-theme .gallery-placeholder {
    background: var(--gradient-bg);
}

/* Contact Section Asylum Theme */
body.asylum-theme .contact-section {
    background: var(--light-bg);
}

body.asylum-theme .contact-info h3 {
    font-family: 'Griffy', cursive;
    color: var(--primary-color);
}

body.asylum-theme .contact-form {
    background: white;
}

body.asylum-theme .contact-form input:focus,
body.asylum-theme .contact-form textarea:focus {
    border-color: var(--accent-color);
}

body.asylum-theme .submit-button {
    background: var(--accent-color);
    color: var(--primary-color);
    font-family: 'Butcherman', cursive;
}

body.asylum-theme .submit-button:hover {
    background: #FFA500;
}

/* Footer Asylum Theme */
body.asylum-theme .footer {
    background: var(--dark-bg);
}

/* Responsive Design für Theme Modal */
@media (max-width: 768px) {
    .theme-modal-content {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .theme-title {
        font-size: 2rem;
    }
    
    .theme-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .theme-preview {
        padding: 1.5rem;
    }
    
    .preview-icon {
        font-size: 3rem;
    }
    
    .theme-preview h3 {
        font-size: 1.3rem;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
    }
    
    .theme-switch-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .theme-modal-content {
        padding: 1.5rem 1rem;
    }
    
    .theme-title {
        font-size: 1.8rem;
    }
    
    .theme-subtitle {
        font-size: 1.1rem;
    }
    
    .confirm-theme-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

/* Hide/Show Content Based on Theme */
body.asylum-theme .garden-content {
    display: none !important;
}

body.asylum-theme .asylum-content {
    display: block !important;
}

body:not(.asylum-theme) .asylum-content {
    display: none !important;
}

body:not(.asylum-theme) .garden-content {
    display: block !important;
}

/* Theme Icon Updates */
body.asylum-theme .theme-icon {
    content: "🍺";
}

body.asylum-theme .theme-switch-btn .theme-icon::before {
    content: "🍺";
}

/* Special Asylum Animations */
@keyframes beerSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes drunkWalk {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(5px) rotate(1deg); }
    75% { transform: translateX(-5px) rotate(-1deg); }
}

body.asylum-theme .beer-sprite:hover {
    animation: beerSpin 0.5s ease-in-out;
}

body.asylum-theme .philosophy-card:hover {
    animation: drunkWalk 2s ease-in-out infinite;
}

/* Loading Animation for Theme Switch */
.theme-transition {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.theme-transition.loaded {
    opacity: 1;
    transform: scale(1);
}
