/*
 * Archivo de estilos para Codex Philosophicus Antitabacum
 * ¡Donde la oscuridad se encuentra con la luz! 🌑✨
 */

/* Variables CSS - Para un diseño modular y fácil de mantener 🎨 */
:root {
    --bg-color: #121212;
    --text-color-light: #e0e0e0;
    --text-color-primary: #f8f8f8;
    --accent-color-orange: #f39c12; /* El color de la sabiduría y la victoria */
    --accent-color-red: #e74c3c; /* El color del desafío y la fuerza */
    --accent-color-blue: #3498db; /* El color de la calma y la claridad */
    --accent-color-purple: #9b59b6; /* El color de la transformación y la realeza */
    --accent-color-green: #2ecc71; /* ¡El color de la victoria! 🏆 */
    --card-bg-gradient: linear-gradient(135deg, #1f1f1f, #2a2a2a);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

body {
    margin: 0;
    font-family: 'Georgia', serif;
    background-color: var(--bg-color);
    color: var(--text-color-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 3px solid var(--accent-color-orange);
    margin-bottom: 40px;
}

.header-title {
    font-size: clamp(2em, 5vw, 2.5em);
    color: var(--accent-color-orange);
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px var(--shadow-color);
    letter-spacing: 2px;
}

.subtitle {
    font-size: clamp(1em, 3vw, 1.2em);
    color: var(--text-color-light);
    font-style: italic;
    margin-bottom: 20px;
}

.quote-header {
    font-size: 0.9em;
    color: #95a5a6;
    margin-top: 15px;
}

.author {
    font-weight: bold;
    color: var(--text-color-light);
}

/* Battle Plan Section */
.battle-plan {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-left: 5px solid var(--accent-color-red);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.battle-plan-title {
    color: var(--accent-color-red);
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Meditation Cards */
.meditation-card {
    background: var(--card-bg-gradient);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.meditation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color-orange);
}

.meditation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.meditation-card:hover::before {
    left: 100%;
}

.time-badge {
    display: inline-block;
    background: var(--accent-color-red);
    color: var(--text-color-primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.philosopher-name {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--accent-color-orange);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meditation-title {
    font-size: 1.2em;
    color: var(--accent-color-blue);
    margin-bottom: 15px;
    font-style: italic;
}

.meditation-text {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color-orange);
    margin: 15px 0;
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.8;
}

.practice-steps {
    margin-top: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 10px;
}

.practice-steps ul {
    margin: 10px 0;
    padding-left: 20px;
}

.practice-steps li {
    margin: 8px 0;
    color: var(--text-color-light);
}

.duration {
    color: var(--accent-color-orange);
    font-weight: bold;
    font-size: 0.9em;
}

/* Summary Section */
.summary {
    background: var(--accent-color-purple);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(142, 68, 173, 0.3);
}

.summary-title {
    color: var(--text-color-primary);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.day-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.time-slot {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--accent-color-blue);
}

/* Quote Section */
.motivational-quote {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: var(--text-color-primary);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
    font-size: 1.1em;
    font-style: italic;
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #95a5a6;
    font-style: italic;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-title {
        font-size: 2em;
    }
    .container {
        padding: 15px;
    }
    .meditation-card {
        padding: 20px;
    }
}

/* Estilos de la barra de progreso - ¡Visualizando la victoria! 💯 */
.progress-section {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-color-green);
    transition: width 0.5s ease-in-out; /* ¡Animación suave para el progreso! 🐢💨 */
}

.progress-text {
    color: var(--text-color-light);
    font-size: 0.9em;
    margin-top: 10px;
}

/* Estilos para las tarjetas completadas - ¡Un merecido reconocimiento! 🎉 */
.meditation-card.completed {
    border-color: var(--accent-color-green);
    opacity: 0.7;
    pointer-events: none; /* Evita clics en las tarjetas ya completadas */
}
