:root {
    /* Furuyoni / Sakura Palette */
    --sakura-pink: #ffb7c5;
    --sakura-deep: #e91e63;
    --night-sky: #1a1a2e;
    --star-gold: #ffd700;
    --text-glow: rgba(255, 183, 197, 0.6);

    /* Glassmorphism Variables */
    --glass-bg: rgba(26, 26, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(233, 30, 99, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(233, 30, 99, 0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(233, 30, 99, 0.2);
    }
}

/* Dashboard Grid System */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.dashboard-wide {
    grid-column: 1 / -1;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 2rem;
    margin: -2rem -2rem 4rem -2rem;
    /* Bleed to edges */
    background: linear-gradient(135deg, var(--night-sky) 0%, #2a1a40 100%);
    overflow: hidden;
    text-align: center;
    border-bottom: 2px solid var(--sakura-deep);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(233, 30, 99, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
    text-shadow: 0 0 30px rgba(233, 30, 99, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
    position: relative;
    line-height: 1.8;
}

/* Feature Cards */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--sakura-deep);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    margin-top: 0;
    color: var(--sakura-pink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Megami Icons */
.megami-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--sakura-deep), var(--star-gold));
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.4);
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.megami-icon-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
    animation: pulse-glow 2s infinite;
}

.megami-icon-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #000;
}

/* Update Badges */
.update-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-season {
    background: rgba(233, 30, 99, 0.2);
    color: #ff80ab;
    border: 1px solid rgba(233, 30, 99, 0.5);
}

.badge-new {
    background: rgba(0, 230, 118, 0.2);
    color: #69f0ae;
    border: 1px solid rgba(0, 230, 118, 0.5);
}

/* Custom Button Styles */
.btn-sakura {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--sakura-deep), #c2185b);
    color: white !important;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    margin: 0.5rem;
}

.btn-sakura:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
    filter: brightness(1.1);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin: 0.5rem;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* --- Card Gallery Dashboard --- */

.megami-card-grid {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin: 1rem 0 3rem;
}

/* Force the UL to be the grid container */
.megami-card-grid ul {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 0.7rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.megami-card-grid li {
    margin: 0 !important;
    padding: 0 !important;
}

.megami-card-grid li p {
    margin: 0 !important;
}

.card-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.25s ease-out;
    border: 1px solid rgba(255,255,255,0.05);
    display: block;
}

.card-img:hover {
    transform: scale(1.2) translateY(-8px);
    z-index: 500;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    border-color: var(--sakura-pink);
}

/* Special Cards Styling */
.special-card {
    border: 2px solid var(--star-gold) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2) !important;
}

.special-card:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5) !important;
}

/* Shared Cards Styling */
.shared-card {
    opacity: 0.5;
    filter: grayscale(40%);
}

.shared-card:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Desktop: 6 columns force (7+4 cards fit well in 2 rows) */
@media screen and (min-width: 1024px) {
    .megami-card-grid ul {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

/* Tablet: 4 columns */
@media screen and (max-width: 1023px) and (min-width: 601px) {
    .megami-card-grid ul {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Mobile: 3 columns */
@media screen and (max-width: 600px) {
    .megami-card-grid ul {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
        padding: 0.5rem !important;
    }
}
