:root {
    /* 🍵 Green Tea Color Palette */
    --dg-text-main: #1A2F24;
    --dg-tea-dark: #43A047;  
    --dg-tea-light: #81C784; 
    
    /* Background Gradient */
    --dg-bg-light: #E8F5E9; 
    --dg-bg-accent: #C8E6C9; 
    
    /* True High-End Glassmorphism */
    --dg-glass-bg: rgba(255, 255, 255, 0.75); 
    --dg-glass-border: rgba(255, 255, 255, 0.9);
    --dg-shadow: 0 16px 40px rgba(67, 160, 71, 0.08); 
}

/* --------------------------------------------------------------------------
   THEME OVERRIDES (ASTRA) - FIXING THE WHITE SIDES
   -------------------------------------------------------------------------- */

body, html {
    background: linear-gradient(135deg, var(--dg-bg-light) 0%, var(--dg-bg-accent) 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

header.entry-header, .ast-single-entry-header, .ast-page-header {
    display: none !important;
}

#page, .site, .site-content, .ast-container, .site-main, .entry-content, .ast-plain-container {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* --------------------------------------------------------------------------
   DIGIVITE CORE LAYOUT
   -------------------------------------------------------------------------- */

.digivite-page {
    background: transparent !important; 
    min-height: 100vh;
    padding-bottom: 60px;
    color: var(--dg-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.digivite-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 20px;
}

.digivite-card, .digivite-header {
    background: var(--dg-glass-bg) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid var(--dg-glass-border) !important;
    border-radius: 24px;
    box-shadow: var(--dg-shadow) !important;
}

.digivite-card {
    padding: 32px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    /* Apply base animation */
    opacity: 0;
    animation: dgFadeInUp 0.6s ease-out forwards;
}

/* Stagger the card animations so they load one after another */
.digivite-grid .digivite-card:nth-child(1) { animation-delay: 0.1s; }
.digivite-grid .digivite-card:nth-child(2) { animation-delay: 0.2s; }
.digivite-grid .digivite-card:nth-child(3) { animation-delay: 0.3s; }
.digivite-grid .digivite-card:nth-child(4) { animation-delay: 0.4s; }

.digivite-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 56px rgba(67, 160, 71, 0.2) !important;
}

/* --------------------------------------------------------------------------
   HEADER NAVIGATION
   -------------------------------------------------------------------------- */

.digivite-header {
    /* Animate header sliding down slightly */
    opacity: 0;
    animation: dgFadeInDown 0.6s ease-out forwards;
}

.dg-header-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.dg-header-links a {
    color: var(--dg-text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dg-header-links a:hover {
    color: var(--dg-tea-dark);
    transform: translateY(-2px);
}

.dg-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --------------------------------------------------------------------------
   COMPONENTS
   -------------------------------------------------------------------------- */

.digivite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--dg-tea-dark), var(--dg-tea-light));
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(67, 160, 71, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Pop in animation */
    opacity: 0;
    animation: dgPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.4s;
}

.digivite-btn:hover {
    box-shadow: 0 12px 28px rgba(67, 160, 71, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.digivite-btn-outline {
    background: rgba(255, 255, 255, 0.6);
    color: var(--dg-tea-dark) !important;
    border: 2px solid var(--dg-tea-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
}

.digivite-btn-outline:hover {
    background: var(--dg-tea-dark);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(67, 160, 71, 0.3);
}

.digivite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.digivite-page-head {
    text-align: center;
    margin-bottom: 48px;
    /* Animate title text */
    opacity: 0;
    animation: dgFadeInUp 0.7s ease-out forwards;
    animation-delay: 0.1s;
}

.digivite-page-head h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dg-text-main);
}

.digivite-page-head p {
    color: var(--dg-text-main);
    opacity: 0.8;
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   FORM INPUT STYLES (LOGIN / REGISTER / RSVP)
   -------------------------------------------------------------------------- */

.digivite-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.digivite-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dg-text-main);
}

.digivite-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--dg-glass-border);
    background: rgba(255, 255, 255, 0.6);
    color: var(--dg-text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.digivite-input:focus {
    outline: none;
    border-color: var(--dg-tea-dark);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(67, 160, 71, 0.15);
}

/* --------------------------------------------------------------------------
   MOBILE RESPONSIVENESS
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .digivite-container { padding: 20px 12px; }
    .digivite-card { padding: 24px 16px; }
    .digivite-header {
        padding: 12px 16px !important;
        margin-bottom: 24px !important;
        margin-top: 12px !important;
        border-radius: 20px !important;
    }
    .digivite-btn { padding: 12px 20px; font-size: 0.9rem; }
    .digivite-page-head h1 { font-size: 2rem; }
    .dg-header-links, .dg-header-logout { display: none !important; }
}

/* --------------------------------------------------------------------------
   KEYFRAME ANIMATIONS (The Magic)
   -------------------------------------------------------------------------- */

/* Slides up and fades in (Used for Cards & Text) */
@keyframes dgFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slides down and fades in (Used for the top Header) */
@keyframes dgFadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bounces in smoothly (Used for Buttons) */
@keyframes dgPopIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
