/* Modern & Premium Styles for La Luna y Las Maticas */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    /* Nueva paleta más sofisticada */
    --bg-gradient-start: #f8fafc;
    --bg-gradient-end: #e2e8f0;
    --primary-dark: #0f172a;
    /* Azul noche profundo */
    --accent-blue: #3b82f6;
    /* Azul brillante suave */
    --accent-green: #10b981;
    /* Esmeralda */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;

    /* Efectos */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --radius-xl: 24px;
    --radius-lg: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    min-height: 100vh;
    padding-top: 80px;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Navbar: Flotante y transparente */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-dark) !important;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: var(--accent-blue);
}

/* Install Button */
#btnInstall {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

#btnInstall:hover {
    background-color: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.display-date {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

/* Cards: Diseño Glassmorphism */
.card-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.9);
}

.card-body {
    padding: 1.5rem;
}

.card-header-styled {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

/* List Items */
.list-group-item {
    background: transparent;
    border: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-weight: 500;
    color: var(--text-main);
}

.list-group-item strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Moon Image & Animation */
.moon-container {
    position: relative;
    padding: 2rem 0;
}

#img {
    max-height: 280px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.2));
    animation: floating 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

#img:hover {
    filter: drop-shadow(0 0 50px rgba(59, 130, 246, 0.4));
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

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

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

#fase {
    margin-top: 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Plants List */
.list-plant {
    font-size: 0.95rem;
    color: var(--primary-dark);
    background: rgba(16, 185, 129, 0.1);
    margin-bottom: 8px;
    border-radius: var(--radius-lg);
    padding: 10px 15px;
    border-left: 4px solid var(--accent-green);
    display: none;
    /* JS controls visibility */
    transition: all 0.3s ease;
}

.list-plant:hover {
    background: rgba(16, 185, 129, 0.2);
    padding-left: 20px;
}

/* Extra Recommendations Box */
#extra {
    display: none;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-xl);
    color: #065f46;
    box-shadow: var(--shadow-soft);
}

#extra h5 {
    color: #059669;
    font-weight: 700;
}

/* Footer */
footer {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer i.fa-heart {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.2);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive adjustments & Compact Mode */
@media (max-width: 768px) {
    /* Layout Orders handled in HTML classes */

    /* Compact Moon Header */
    .moon-container {
        padding: 0.5rem 0;
        margin-bottom: 1rem !important;
    }

    #img {
        max-height: 140px;
    }

    .display-date {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    #fase {
        font-size: 1.3rem;
        margin-top: 0.5rem;
    }

    /* Cards Compact */
    .card-custom {
        margin-bottom: 16px;
        padding: 0;
        /* Remove padding from card wrapper */
    }

    .card-body {
        padding: 1rem;
    }

    /* Chips Layout for Recommendations on Mobile */
    .recs-container .list-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 10px;
    }

    .recs-container .list-plant {
        width: auto;
        display: inline-block;
        /* Override block */
        font-size: 0.85rem;
        margin: 0;
        padding: 6px 12px;
        border-radius: 20px;
        border: 1px solid rgba(16, 185, 129, 0.3);
        background: rgba(16, 185, 129, 0.05);
    }

    /* Hide 'Datos Lunares' header effectively to save space if needed, or keep small */
    .card-header-styled {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }
}