:root {
    --candy-pink: #FF69B4;
    --lollipop-purple: #9B6B9E;
    --sweet-blue: #87CEEB;
    --cookie-brown: #D2691E;
    --candy-yellow: #FFD700;
}

body {
    background: linear-gradient(135deg, #FFE5F1 0%, #FFF0F5 100%);
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    color: #5C4033;
}

.hero-section {
    background: url('/api/placeholder/1200/400') center/cover;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 192, 203, 0.3);
}

.candy-card {
    border-radius: 25px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.candy-card:hover {
    transform: translateY(-10px);
}

.sweet-button {
    background: var(--candy-pink);
    border-radius: 25px;
    padding: 12px 30px;
    border: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sweet-button:hover {
    background: var(--lollipop-purple);
    transform: scale(1.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--candy-pink);
}

.section-title {
    color: var(--lollipop-purple);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.disclaimer {
    background: rgba(155, 107, 158, 0.1);
    border-radius: 15px;
    padding: 20px;
    font-size: 0.9rem;
}

.floating-candy {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

.candy-pattern {
    background-image: url('/api/placeholder/100/100');
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.level-preview {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.level-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 105, 180, 0.3), rgba(155, 107, 158, 0.3));
}

.character-card {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: scale(1.05);
}

.sweet-badge {
    background: var(--candy-pink);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--candy-yellow), var(--candy-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.8rem;
}

.sugar-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Sweet Road - Main Stylesheet */

:root {
    --candy-pink: #FF69B4;
    --lollipop-purple: #9B6B9E;
    --sweet-blue: #87CEEB;
    --cookie-brown: #D2691E;
    --candy-yellow: #FFD700;
    --bubble-gum: #FF88CC;
    --mint-green: #98FF98;
    --chocolate: #693D3D;
    --cream: #FFFDD0;
    --caramel: #FFB347;
}

/* Base Styles */
body {
    background: linear-gradient(135deg, #FFE5F1 0%, #FFF0F5 100%);
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    color: #5C4033;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--candy-pink);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lollipop-purple);
}

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--candy-pink) !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    font-weight: 600;
    color: var(--chocolate) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--candy-pink);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(45deg, var(--bubble-gum), var(--sweet-blue));
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50l-10-10 10-10 10 10z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* Card Styles */
.candy-card {
    border-radius: 25px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.candy-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.candy-card:hover::before {
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Button Styles */
.sweet-button {
    background: var(--candy-pink);
    border-radius: 25px;
    padding: 12px 30px;
    border: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sweet-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--candy-pink), var(--lollipop-purple));
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.sweet-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.sweet-button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

/* Character Cards */
.character-card {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.character-card img {
    transition: all 0.3s ease;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.character-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

.character-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.character-card:hover::after {
    opacity: 1;
}

/* Achievement Icons */
.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--candy-yellow), var(--candy-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.achievement-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--candy-yellow), var(--candy-pink), var(--sweet-blue));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-icon:hover {
    transform: scale(1.1) rotate(360deg);
}

.achievement-icon:hover::before {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    overflow: hidden;
}

.newsletter-input {
    border: 2px solid var(--candy-pink);
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.3);
    border-color: var(--lollipop-purple);
}

/* Loading Animation */
.loading-candy {
    width: 50px;
    height: 50px;
    background: var(--candy-pink);
    border-radius: 50%;
    position: relative;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Floating Elements */
.float-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Sweet Badge */
.sweet-badge {
    background: var(--candy-pink);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.sweet-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent
    );
    transform: rotate(45deg);
    animation: shine-badge 3s infinite;
}

@keyframes shine-badge {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .candy-card {
        margin-bottom: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2A1B2A 0%, #1F1F1F 100%);
        color: #FFE5F1;
    }

    .candy-card {
        background: rgba(41, 41, 41, 0.9);
        color: #FFE5F1;
    }

    .nav-link {
        color: #FFE5F1 !important;
    }

    .navbar {
        background: rgba(41, 41, 41, 0.95) !important;
    }
}

.cookie-disclaimer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.cookie-disclaimer button {
    background-color: #f39c12;
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Character Card Styles */
.character-portrait {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.character-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.character-portrait:hover .character-image {
    transform: scale(1.05);
}

.character-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px 10px 10px;
    transform: translateZ(20px);
}

.character-role {
    background: var(--candy-pink);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.character-name {
    color: var(--chocolate);
    font-weight: 700;
    margin: 1rem 0;
    font-size: 1.4rem;
    position: relative;
}

.character-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--candy-pink);
    border-radius: 2px;
}

.character-desc {
    color: var(--chocolate);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Character Stats */
.character-stats {
    background: rgba(255, 105, 180, 0.1);
    padding: 1rem;
    border-radius: 10px;
}

.stat-item {
    margin-bottom: 0.8rem;
    text-align: left;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item i {
    color: var(--candy-pink);
    margin-right: 8px;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--chocolate);
    font-weight: 600;
}

.stat-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
}

.stat-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--fill);
    background: linear-gradient(90deg, var(--candy-pink), var(--lollipop-purple));
    border-radius: 3px;
    animation: fillBar 1s ease-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--fill);
    }
}

/* Hover Effects */
.character-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.character-card:hover .character-portrait {
    transform: perspective(1000px) rotateY(5deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .character-portrait {
        max-width: 280px;
        margin: 0 auto;
    }

    .character-stats {
        max-width: 280px;
        margin: 0 auto;
    }
}