/* ===================================
   LESSON 5 - SPECIFIC STYLES
   Input Utente
   =================================== */

/* Importing base lesson styles */
@import url('../lezione-01/style.css');

/* HTML Structure Box - Lesson 2 specific additions */
.html-structure-box {
    background: #e3f2fd;
    border: 3px solid #2196f3;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}

body.dark-theme .html-structure-box {
    background: #0d2d4a;
    border-color: #64b5f6;
}

.html-structure-box h3 {
    color: #1976d2;
    margin-bottom: 1rem;
}

body.dark-theme .html-structure-box h3 {
    color: #64b5f6;
}

.html-structure-box p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.id-reference {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    border-left: 4px solid #2196f3;
}

body.dark-theme .id-reference {
    background: #1a1a1a;
}

.id-reference strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #1976d2;
    font-size: 1.1rem;
}

body.dark-theme .id-reference strong {
    color: #64b5f6;
}

.id-reference ul {
    list-style: none;
    padding: 0;
}

.id-reference li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.id-reference li:last-child {
    border-bottom: none;
}

.id-reference code {
    background: #e3f2fd;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: var(--font-code);
    color: #1976d2;
    font-weight: 600;
    margin-right: 0.5rem;
}

body.dark-theme .id-reference code {
    background: #0d2d4a;
    color: #64b5f6;
}

.code-tag {
    color: #569cd6;
}

.code-attr {
    color: #9cdcfe;
}

/* Demo Container Specific */
.demo-display {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

body.dark-theme .demo-display {
    background: #2d2d2d;
}

/* Counter Display */
.counter-display {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-primary);
    border-radius: 16px;
    color: white;
    margin-bottom: 2rem;
}

.counter-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.counter-value {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin: 1rem 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.counter-sublabel {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-box {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

body.dark-theme .stat-box {
    background: #1a1a1a;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Code Peek */
.code-peek {
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.code-peek h4 {
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.code-peek code {
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-number {
    color: #b5cea8;
}

/* Visual Box */
.visual-box {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.variable-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.var-box {
    background: white;
    border: 3px solid var(--accent-primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

body.dark-theme .var-box {
    background: #1a1a1a;
}

.var-box:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.var-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-family: var(--font-code);
}

.var-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-primary);
    font-family: var(--font-code);
}

/* Why Box */
.why-box {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin: 1.5rem 0;
}

.why-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.why-box ol {
    padding-left: 1.5rem;
}

.why-box li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Comparison Table */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table h4 {
    margin-bottom: 1rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

body.dark-theme .comparison-table table {
    background: #2d2d2d;
}

.comparison-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.comparison-table code {
    display: block;
    margin: 0.5rem 0;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.comparison-table small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

/* Info Box */
.info-box {
    background: #d1f2eb;
    border-left: 4px solid #00d2a0;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

body.dark-theme .info-box {
    background: #003d2d;
    color: #00ffa5;
}

.info-box strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* Rules Box */
.rules-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.rule-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    align-items: flex-start;
}

.rule-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.rule-item code {
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    font-family: var(--font-code);
}

.rule-item ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

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

.type-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.type-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.type-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.type-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.code-example-small {
    background: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.code-example-small pre {
    margin: 0;
}

.code-example-small code {
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #d4d4d4;
}

.code-boolean {
    color: #569cd6;
}

.code-null {
    color: #569cd6;
}

/* Interactive Type Checker */
.interactive-type-checker {
    margin: 2rem 0;
}

.type-checker {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.type-input {
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: 8px;
    font-family: var(--font-code);
    background: white;
    color: var(--text-primary);
}

body.dark-theme .type-input {
    background: #1a1a1a;
    border-color: #3d3d3d;
}

.type-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.check-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.check-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.type-result {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-theme .type-result {
    background: #1a1a1a;
}

/* Calculator Demo */
.calculator-demo {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}

.calc-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

body.dark-theme .calc-container {
    background: #2d2d2d;
}

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.calc-input {
    padding: 1rem;
    font-size: 1.5rem;
    text-align: center;
    border: 3px solid var(--bg-tertiary);
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-code);
}

body.dark-theme .calc-input {
    background: #1a1a1a;
    border-color: #3d3d3d;
    color: white;
}

.calc-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.calc-operator {
    padding: 1rem;
    font-size: 1.1rem;
    border: 3px solid var(--bg-tertiary);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
}

body.dark-theme .calc-operator {
    background: #1a1a1a;
    border-color: #3d3d3d;
    color: white;
}

.calc-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.calc-result {
    background: var(--gradient-sunset);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1.5rem;
}

.result-label {
    display: block;
    color: white;
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    font-family: var(--font-code);
}

/* Display Box */
.display-box {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
}

/* Points Display */
.points-display {
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
}

.points-label {
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.points-value {
    font-size: 6rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin: 1rem 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.points-sublabel {
    color: white;
    font-size: 1rem;
    opacity: 0.8;
}

.exercise-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Project Styles */
.project-display {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.main-counter {
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
}

.counter-big-value {
    font-size: 7rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.5s;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

body.dark-theme .stat-card {
    background: #1a1a1a;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-primary);
    font-family: var(--font-code);
}

.project-controls-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.project-input {
    padding: 1rem;
    font-size: 1.2rem;
    text-align: center;
    border: 3px solid var(--bg-tertiary);
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-code);
}

body.dark-theme .project-input {
    background: #1a1a1a;
    border-color: #3d3d3d;
    color: white;
}

.project-btn {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Key Concepts */
.key-concepts-box {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}

.key-concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.concept-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s;
}

body.dark-theme .concept-card {
    background: #2d2d2d;
}

.concept-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.concept-card h4 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.concept-card code {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-code);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .calc-inputs {
        grid-template-columns: 1fr;
    }

    .calc-operator {
        text-align: center;
    }

    .counter-value {
        font-size: 3.5rem;
    }

    .counter-big-value {
        font-size: 4rem;
    }

    .points-value {
        font-size: 4rem;
    }

    .project-controls-grid {
        grid-template-columns: 1fr;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }

    .key-concepts-grid {
        grid-template-columns: 1fr;
    }

    .variable-visual {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .project-stats {
        grid-template-columns: 1fr 1fr;
    }
}
/* ===================================
   LEZIONE 5 - ADDITIONAL STYLES
   =================================== */

/* Input Types Demo */
.input-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.input-type-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

body.dark-theme .input-type-card {
    background: #2d2d2d;
}

.input-type-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.input-demo {
    margin: 1rem 0;
}

.input-demo input,
.input-demo select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: 8px;
    font-size: 1rem;
}

body.dark-theme .input-demo input,
body.dark-theme .input-demo select {
    background: #1a1a1a;
    color: white;
}

/* Form Builder Exercise */
.form-builder-preview {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    min-height: 300px;
}

body.dark-theme .form-builder-preview {
    background: #2d2d2d;
}

.greeting-display {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.greeting-form {
    display: grid;
    gap: 1.5rem;
}

.greeting-form .form-group {
    margin: 0;
}

.greeting-form input,
.greeting-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: 8px;
    font-size: 1rem;
}

body.dark-theme .greeting-form input,
body.dark-theme .greeting-form select {
    background: #1a1a1a;
    color: white;
}

.greeting-form button {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Registration Form Project */
.registration-preview {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

body.dark-theme .registration-preview {
    background: #2d2d2d;
}

.registration-header {
    text-align: center;
    margin-bottom: 2rem;
}

.registration-header h3 {
    margin: 0;
    color: var(--accent-primary);
}

.reg-form-group {
    margin: 1.5rem 0;
}

.reg-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.reg-form-group input,
.reg-form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: 8px;
    font-size: 1rem;
}

body.dark-theme .reg-form-group input,
body.dark-theme .reg-form-group select {
    background: #1a1a1a;
    color: white;
}

.reg-output {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    min-height: 150px;
}

.reg-output h4 {
    margin-top: 0;
    color: var(--accent-primary);
}

.user-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

body.dark-theme .user-card {
    background: #2d2d2d;
}

.user-card .user-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1rem;
}

.user-card .user-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.user-card .user-info {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}


/* ============================================
   CSS PER SEZIONE ESERCIZI SCARICABILI
   Aggiungi questo CSS al file style.css della lezione
   ============================================ */

/* Download Intro */
.download-intro {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    margin-bottom: 2rem;
}

.download-intro p {
    margin-bottom: 0.75rem;
    color: #1e293b;  
    line-height: 1.6;
}
.download-intro strong {
    color: #6366f1;  
    font-weight: 700;
}

.download-intro p:last-child {
    margin-bottom: 0;
}

/* Download Box Main */
.download-box-main {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.download-box-main h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.download-box-main > p {
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.btn-download-big {
    display: inline-block;
    background: white;
    color: var(--accent-primary);
    padding: 1.25rem 3rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-download-big:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.download-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.download-note code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

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

.exercise-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.exercise-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-primary);
    opacity: 0.2;
}

.exercise-difficulty {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.difficulty-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.difficulty-badge.easy {
    background: #d1fae5;
    color: #065f46;
}

.difficulty-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-badge.hard {
    background: #fee2e2;
    color: #991b1b;
}

.time-badge {
    font-size: 0.85rem;
    color: #64748b;
}

.exercise-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.exercise-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.exercise-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    color: var(--text-secondary);
}

/* Instructions Download */
.instructions-download {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.instructions-download h3 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.download-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.download-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.download-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.download-steps li strong {
    color: var(--accent-primary);
}

.download-steps code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #1e293b;
}

/* What's Included */
.whats-included {
    margin: 2rem 0;
}

.whats-included h3 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.included-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.included-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.included-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.included-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Pro Tips */
.pro-tips-download {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.pro-tips-download h3 {
    color: #92400e;
    margin-bottom: 1.5rem;
}

.tip-box {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #f59e0b;
}

.tip-box:last-child {
    margin-bottom: 0;
}

.tip-box strong {
    display: block;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.tip-box p {
    color: #78716c;
    font-size: 0.95rem;
}

.tip-box kbd {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 0 #cbd5e1;
}

.tip-box code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #1e293b;
}

/* CTA Download */
.cta-download {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0;
    border: 2px solid var(--accent-primary);
}

.cta-download h3 {
    color: var(--accent-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-download > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-download-cta {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-download-cta:hover {
    background: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.cta-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .exercises-grid {
        grid-template-columns: 1fr;
    }
    
    .included-grid {
        grid-template-columns: 1fr;
    }
    
    .download-box-main {
        padding: 2rem 1.5rem;
    }
    
    .download-box-main h3 {
        font-size: 1.5rem;
    }
    
    .btn-download-big,
    .btn-download-cta {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .download-steps li {
        padding: 1rem 1rem 1rem 3rem;
    }
}


/* Banner Esercizi Scaricabili */
.exercise-banner {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.banner-icon {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.banner-text {
    flex: 1;
    min-width: 250px;
}

.banner-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    opacity: 0.95;
    margin: 0;
}

.banner-link {
    display: inline-block;
    background: white;
    color: var(--accent-primary);
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content h3 {
        font-size: 1.3rem;
    }
    
    .banner-link {
        width: 100%;
    }
}