/* Anime Paradise - Y2K Aesthetic CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
    background: linear-gradient(45deg, #1a0d1a, #330033, #660066, #990099, #cc00cc);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite, explosionGlow 5s ease-in-out infinite;
    color: #fff;
    overflow-x: auto;
    position: relative;
}

@keyframes explosionGlow {
    0%, 100% { box-shadow: inset 0 0 50px rgba(204, 0, 204, 0.3); }
    50% { box-shadow: inset 0 0 100px rgba(255, 69, 0, 0.2); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Sparkle Effect */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ff4500, #ff0000, #8b0000);
    border-radius: 50%;
    animation: explosionSparkle 3s infinite ease-in-out;
    box-shadow: 0 0 10px #ff4500;
}

@keyframes explosionSparkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0) rotate(0deg); 
        filter: hue-rotate(0deg);
    }
    25% { 
        opacity: 1; 
        transform: scale(1.2) rotate(90deg); 
        filter: hue-rotate(45deg);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.5) rotate(180deg); 
        filter: hue-rotate(90deg);
    }
    75% { 
        opacity: 0.6; 
        transform: scale(1.8) rotate(270deg); 
        filter: hue-rotate(135deg);
    }
}

/* Explosion Effects */
.explosion-burst {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    font-size: 40px;
    animation: explosion-burst 2s ease-out forwards;
}

@keyframes explosion-burst {
    0% {
        transform: scale(0.1) rotate(0deg);
        opacity: 1;
        filter: brightness(2) hue-rotate(0deg);
    }
    50% {
        transform: scale(2) rotate(180deg);
        opacity: 0.8;
        filter: brightness(1.5) hue-rotate(45deg);
    }
    100% {
        transform: scale(4) rotate(360deg);
        opacity: 0;
        filter: brightness(0.5) hue-rotate(90deg);
    }
}

/* Mana bar styling */
.mana-bar {
    background: linear-gradient(90deg, #000033, #000066);
    border: 2px solid #6600cc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(102, 0, 204, 0.5);
}

.mana-fill {
    background: linear-gradient(90deg, #3300cc, #6600ff, #9933ff);
    transition: width 0.5s ease;
    animation: mana-pulse 2s infinite;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes mana-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.1);
    border: 3px solid #ff6b9d;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

/* Explosion Button Styling */
.explosion-btn {
    background: linear-gradient(45deg, #ff0000, #ff4500, #ff6600);
    color: #fff;
    border: 3px solid #8b0000;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
    animation: explosion-btn-pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.explosion-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    animation: explosion-btn-ready 1s infinite;
}

.explosion-btn:active {
    transform: scale(0.95);
    background: linear-gradient(45deg, #8b0000, #ff0000, #ff4500);
}

.explosion-btn:disabled {
    background: linear-gradient(45deg, #333, #666, #999);
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
}

@keyframes explosion-btn-pulse {
    0%, 100% { 
        filter: brightness(1) saturate(1); 
        box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
    }
    50% { 
        filter: brightness(1.2) saturate(1.3); 
        box-shadow: 0 0 40px rgba(255, 69, 0, 0.8);
    }
}

@keyframes explosion-btn-ready {
    0%, 100% { 
        background: linear-gradient(45deg, #ff0000, #ff4500, #ff6600);
        transform: scale(1.1);
    }
    50% { 
        background: linear-gradient(45deg, #ff4500, #ff6600, #ffff00);
        transform: scale(1.15);
    }
}

/* Shrine Styling */
.shrine-section {
    background: linear-gradient(135deg, 
        rgba(51, 0, 51, 0.9), 
        rgba(102, 0, 102, 0.8), 
        rgba(153, 0, 153, 0.7));
    border: 2px solid #cc00cc;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 
        0 0 30px rgba(204, 0, 204, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.offering-item {
    background: linear-gradient(45deg, #660066, #990099);
    border: 1px solid #cc00cc;
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.offering-item:hover {
    background: linear-gradient(45deg, #990099, #cc00cc);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(204, 0, 204, 0.6);
}

/* Spell simulator styling */
.spell-simulator {
    background: linear-gradient(135deg, #001122, #003366, #006699);
    border: 2px solid #0099cc;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

#target {
    background: linear-gradient(45deg, #cc0000, #ff3333);
    color: #fff;
    border: 2px solid #990000;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: target-float 3s ease-in-out infinite;
}

@keyframes target-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes target-hit {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); filter: brightness(2); }
    100% { transform: scale(1); }
}

/* Header */
.header {
    background: linear-gradient(90deg, #ff6b9d, #c44569, #ff6b9d);
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #fff;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-gif {
    width: 80px;
    height: 80px;
    border: 3px solid #fff;
    border-radius: 50%;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.site-title {
    font-size: 2.2em;
    text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000;
    color: #fff;
    font-weight: bold;
    animation: subtle-glow 4s infinite alternate;
}

@keyframes subtle-glow {
    from { text-shadow: 2px 2px 0px #000, 0 0 10px rgba(255, 107, 157, 0.5); }
    to { text-shadow: 2px 2px 0px #000, 0 0 20px rgba(255, 107, 157, 0.8); }
}

.welcome-banner {
    margin-top: 15px;
    background: #000;
    border: 2px solid #ff6b9d;
    border-radius: 10px;
    padding: 5px;
}

marquee {
    color: #00ff41;
    font-weight: bold;
    font-size: 13px;
}

/* Navigation */
.navigation {
    background: linear-gradient(45deg, #3c40c6, #00d2d3);
    padding: 15px 0;
    border-bottom: 3px solid #fff;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border: 2px solid #fff;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 0px #000;
    position: relative;
    overflow: hidden;
}

.nav-link:hover, .nav-link.active {
    background: linear-gradient(45deg, #c44569, #ff6b9d);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.8);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 20px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.content-box {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #ff6b9d;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
    position: relative;
}

.content-box h2 {
    color: #ff6b9d;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #000;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 0px #000, 0 0 10px #ff6b9d; }
    to { text-shadow: 2px 2px 0px #000, 0 0 20px #ff6b9d, 0 0 30px #ff6b9d; }
}

/* Home Section */
.intro-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.intro-gif {
    width: 120px;
    height: 120px;
    border: 3px solid #ff6b9d;
    border-radius: 10px;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
}

.stats-counter {
    text-align: center;
    margin: 30px 0;
}

.counter-box {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 3px solid #fff;
    display: inline-block;
}

.counter-box img {
    display: block;
    margin: 0 auto 10px;
    max-width: 100px;
}

.news-section h3 {
    color: #3c40c6;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff6b9d;
    padding-bottom: 5px;
}

.news-box {
    background: #f0f0f0;
    border: 2px solid #ff6b9d;
    border-radius: 10px;
    padding: 15px;
}

.news-box p {
    margin-bottom: 10px;
    padding: 5px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 5px;
}

/* About Section */
.about-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border: 3px solid #ff6b9d;
    border-radius: 50%;
    animation: rotate 5s infinite linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-list {
    list-style: none;
    margin: 20px 0;
}

.about-list li {
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 5px;
    border-left: 4px solid #ff6b9d;
}

/* Anime Grid */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.anime-card {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: #fff;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #fff;
    transition: transform 0.3s ease;
}

.anime-card:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 25px rgba(255, 107, 157, 0.8);
}

.anime-card img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #fff;
    margin-bottom: 10px;
}

.anime-card h4 {
    margin: 10px 0;
    font-size: 1.2em;
    text-shadow: 1px 1px 0px #000;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 3px solid #ff6b9d;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.8);
}

/* Links Section */
.links-section h3 {
    color: #3c40c6;
    margin: 20px 0 15px;
    border-bottom: 2px solid #ff6b9d;
    padding-bottom: 5px;
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.link-button {
    background: linear-gradient(45deg, #3c40c6, #00d2d3);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 0px #000;
}

.link-button:hover {
    background: linear-gradient(45deg, #00d2d3, #3c40c6);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(60, 64, 198, 0.6);
}

.webring-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.webring-button {
    width: 80px;
    height: 30px;
    border: 2px solid #ff6b9d;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.webring-button:hover {
    transform: scale(1.1);
}

/* Guestbook */
.guestbook-form {
    margin-bottom: 30px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #ff6b9d;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.form-textarea {
    height: 100px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.submit-button:hover {
    background: linear-gradient(45deg, #c44569, #ff6b9d);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
}

.guestbook-entries h3 {
    color: #3c40c6;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff6b9d;
    padding-bottom: 5px;
}

.entry {
    background: #f0f0f0;
    border: 2px solid #ff6b9d;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.entry small {
    color: #666;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 15px;
    border-radius: 15px;
    border: 3px solid #3c40c6;
    box-shadow: 0 0 15px rgba(60, 64, 198, 0.3);
}

.widget h3 {
    color: #3c40c6;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
    border-bottom: 2px solid #3c40c6;
    padding-bottom: 5px;
}

.music-player, .date-widget, .quote-widget, .mood-widget {
    text-align: center;
}

.music-gif, .widget-gif, .mood-gif {
    width: 50px;
    height: 50px;
    margin: 10px 0;
    border: 2px solid #3c40c6;
    border-radius: 50%;
}

.widget button {
    background: linear-gradient(45deg, #3c40c6, #00d2d3);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.widget button:hover {
    background: linear-gradient(45deg, #00d2d3, #3c40c6);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #000, #333, #000);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-top: 3px solid #ff6b9d;
    margin-top: 20px;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-buttons img {
    width: 80px;
    height: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-buttons img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .site-title {
        font-size: 1.8em;
    }
    
    .intro-section, .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .site-title {
        font-size: 1.4em;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .gallery-item {
        height: 100px;
    }
}
