/* Workout Builder Custom Styles */

/* Hero Section */
.builder-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(52, 195, 99, 0.15) 100%);
    padding: 120px 0 80px 0;
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.builder-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 195, 99, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.builder-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.builder-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* Builder Section */
.builder-section {
    background: var(--primary-dark);
    padding: 60px 0 80px 0;
}

.builder-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 48px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.builder-card .section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-white);
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: 1rem;
    display: block;
}

.btn-group-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.btn-option {
    flex: 1;
    min-width: 140px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--primary-white);
    font-weight: 400;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 195, 99, 0.5);
    transform: translateY(-2px);
}

.btn-check:checked + .btn-option {
    background: rgba(52, 195, 99, 0.2);
    border-color: var(--primary-green);
    color: var(--primary-white);
    font-weight: 600;
}

.btn-option strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.btn-option small {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* Submit Button */
.btn-primary {
    background: var(--primary-green);
    border: none;
    color: var(--primary-white);
    font-weight: 600;
    padding: 14px 48px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2ab057;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 195, 99, 0.3);
}

/* Workout Result Section */
.workout-result-section {
    background: var(--primary-dark);
    padding: 80px 0;
    min-height: 100vh;
}

.result-header {
    margin-bottom: 3rem;
}

.result-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.result-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Workout Day Cards */
.workout-day-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.workout-day-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(52, 195, 99, 0.3);
}

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(52, 195, 99, 0.3);
}

.day-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
}

.day-badge {
    background: rgba(52, 195, 99, 0.2);
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Exercise List */
.exercise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exercise-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary-green);
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.exercise-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #2ab057;
}

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

.exercise-number {
    background: var(--primary-green);
    color: var(--primary-white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
}

.exercise-name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: 4px;
}

.exercise-sets {
    font-size: 0.95rem;
    color: var(--primary-green);
    font-weight: 600;
}

.exercise-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 12px;
}

.exercise-video-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.exercise-video-link:hover {
    color: #2ab057;
    text-decoration: underline;
}

.exercise-video-link svg {
    margin-right: 6px;
}

/* Workout Notes */
.workout-notes {
    background: rgba(52, 195, 99, 0.1);
    border-left: 4px solid var(--primary-green);
    border-radius: 12px;
    padding: 32px;
}

.notes-title {
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.notes-list {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0;
    padding-left: 20px;
}

.notes-list li {
    margin-bottom: 12px;
}

.notes-list li strong {
    color: var(--primary-white);
    font-weight: 600;
}

.notes-list a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.notes-list a:hover {
    text-decoration: underline;
}

/* Result Actions */
.result-actions {
    padding-top: 32px;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-white);
    background: transparent;
    font-weight: 500;
    padding: 12px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-white);
    color: var(--primary-white);
}

/* Superset Indicator */
.superset-group {
    position: relative;
    padding-left: 20px;
}

.superset-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-green) 0%, rgba(52, 195, 99, 0.3) 100%);
    border-radius: 2px;
}

.superset-label {
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .builder-hero {
        padding: 100px 0 60px 0;
    }

    .builder-hero .hero-title {
        font-size: 2rem;
    }

    .builder-hero .hero-subtitle {
        font-size: 1rem;
    }

    .builder-card {
        padding: 32px 24px;
    }

    .btn-group-custom {
        flex-direction: column;
    }

    .btn-option {
        min-width: 100%;
    }

    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .exercise-header {
        flex-direction: column;
    }

    .exercise-sets {
        margin-top: 8px;
    }

    .workout-notes {
        padding: 24px 20px;
    }
}

@media (max-width: 576px) {
    .builder-hero .hero-title {
        font-size: 1.75rem;
    }

    .builder-card {
        padding: 24px 16px;
    }

    .workout-day-card {
        padding: 24px 16px;
    }
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .navbar,
    .builder-hero,
    .builder-section,
    .result-actions {
        display: none !important;
    }

    .workout-result-section {
        display: block !important;
        padding: 20px !important;
        background: white !important;
        color: black !important;
        margin: 0 !important;
    }

    .result-header {
        margin-bottom: 30px !important;
    }

    .result-header .section-title {
        color: #1E1E1E !important;
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }

    .result-subtitle {
        color: #333 !important;
        font-size: 14px !important;
    }

    .workout-day-card {
        page-break-inside: avoid;
        border: 2px solid #ddd !important;
        background: white !important;
        padding: 20px !important;
        margin-bottom: 25px !important;
        border-radius: 8px !important;
    }

    .day-header {
        border-bottom: 2px solid #34C363 !important;
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
    }

    .day-title {
        color: #34C363 !important;
        font-size: 20px !important;
    }

    .day-badge {
        background: #e8f5e9 !important;
        color: #2e7d32 !important;
        padding: 4px 12px !important;
        border: 1px solid #34C363 !important;
    }

    .exercise-item {
        border-left: 3px solid #34C363 !important;
        background: #f9f9f9 !important;
        padding: 15px !important;
        margin-bottom: 12px !important;
        page-break-inside: avoid;
    }

    .exercise-number {
        background: #34C363 !important;
        color: white !important;
        padding: 3px 8px !important;
    }

    .exercise-name {
        color: #1E1E1E !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .exercise-sets {
        color: #2e7d32 !important;
        font-weight: 600 !important;
    }

    .exercise-description {
        color: #555 !important;
        font-size: 12px !important;
    }

    .exercise-video-link {
        color: #1976d2 !important;
        font-size: 11px !important;
        text-decoration: underline !important;
    }

    .workout-notes {
        background: #f0f0f0 !important;
        border-left: 4px solid #34C363 !important;
        padding: 20px !important;
        margin-top: 30px !important;
        page-break-inside: avoid;
    }

    .notes-title {
        color: #34C363 !important;
        font-size: 16px !important;
    }

    .notes-list {
        color: #333 !important;
        font-size: 12px !important;
    }

    .notes-list li {
        margin-bottom: 8px !important;
    }

    .notes-list a {
        color: #1976d2 !important;
    }

    .superset-group {
        padding-left: 15px !important;
    }

    .superset-group::before {
        background: #34C363 !important;
    }

    .superset-label {
        color: #2e7d32 !important;
        font-size: 11px !important;
    }
}
