/* ============================================
   VYTARA CLIENT - HOME PAGE STYLES
   ============================================ */

/* ============================================
   HEADER
   ============================================ */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.header-left {
    flex: 1;
}

.client-name {
    font-size: 22px;
    font-weight: 500;
    color: var(--color-gray-900);
    margin: 0 0 2px;
    line-height: 1.2;
}

.current-date {
    font-size: 13px;
    color: var(--color-gray-500);
    margin: 0;
}

.header-right {
    flex-shrink: 0;
}

/* Profile Avatar */
.profile-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar:active {
    transform: scale(0.95);
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2D4A38 0%, #5E8A6E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
    color: white;
    letter-spacing: 0.02em;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #E24B4A;
    border: 2px solid var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

/* ============================================
   TODAY'S WORKOUT CARD (HERO)
   ============================================ */

.today-workout-card {
    background: linear-gradient(135deg, #185FA5 0%, #2A7AC2 100%);
    border-radius: var(--radius-3xl);
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.card-background-pattern {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 1;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.status-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

/* Workout Name */
.workout-name {
    font-size: 22px;
    font-weight: 500;
    color: white;
    margin: 0 0 8px;
    line-height: 1.3;
}

/* Workout Details */
.workout-details {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.25rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.detail-item i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.start-button {
    flex: 1;
    padding: 12px;
    background: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #185FA5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform var(--transition-normal);
}

.start-button:hover {
    transform: scale(1.02);
}

.start-button:active {
    transform: scale(0.98);
}

.start-button i {
    font-size: 16px;
}

.options-button {
    width: 48px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal);
}

.options-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.options-button i {
    font-size: 18px;
    color: white;
}

/* Trainer Notes */
.trainer-notes {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    gap: 8px;
}

.note-icon {
    flex-shrink: 0;
}

/* ============================================
   QUICK STATS BAR
   ============================================ */

.quick-stats-bar {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    border: 0.5px solid var(--color-gray-200);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-alpine-darker);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stat-value.streak {
    color: var(--color-teal-primary);
}

.fire-emoji {
    font-size: 16px;
}

.stat-label {
    font-size: 11px;
    color: var(--color-gray-500);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--color-gray-200);
}

.view-stats-button {
    padding: 8px 12px;
    background: rgba(45, 74, 56, 0.06);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-alpine-darker);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background var(--transition-normal);
}

.view-stats-button:hover {
    background: rgba(45, 74, 56, 0.12);
}

.view-stats-button i {
    font-size: 14px;
}

/* ============================================
   ACHIEVEMENT NOTIFICATION
   ============================================ */

.achievement-notification {
    background: linear-gradient(135deg, rgba(29, 158, 117, 0.08) 0%, rgba(93, 202, 165, 0.08) 100%);
    border-radius: var(--radius-2xl);
    border: 0.5px solid rgba(29, 158, 117, 0.2);
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.badge-icon i {
    font-size: 24px;
    color: white;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-gray-900);
    margin: 0 0 2px;
}

.badge-name {
    font-size: 13px;
    color: var(--color-gray-600);
    margin: 0;
}

.share-button {
    padding: 8px 12px;
    background: white;
    border: 0.5px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray-900);
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.share-button:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

.share-button:active {
    transform: scale(0.95);
}

.dismiss-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal);
    opacity: 0.6;
}

.dismiss-button:hover {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1;
}

.dismiss-button i {
    font-size: 16px;
    color: var(--color-gray-600);
}

/* ============================================
   TOMORROW PREVIEW CARD
   ============================================ */

.tomorrow-preview-card {
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    border: 0.5px solid var(--color-gray-200);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
}

.tomorrow-preview-card:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
    transform: translateX(2px);
}

.tomorrow-preview-card:active {
    transform: translateX(0) scale(0.98);
}

.preview-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3D6B4F 0%, #5E8A6E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preview-icon i {
    font-size: 20px;
    color: white;
}

.preview-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-label {
    font-size: 12px;
    color: var(--color-gray-500);
}

.preview-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-arrow {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-normal);
}

.tomorrow-preview-card:hover .preview-arrow {
    background: rgba(0, 0, 0, 0.03);
}

.preview-arrow i {
    font-size: 18px;
    color: var(--color-gray-400);
}

/* ============================================
   EXPANDABLE SECTIONS
   ============================================ */

.expandable-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.expandable-section {
    width: 100%;
    padding: 12px;
    background: var(--color-white);
    border: 0.5px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-normal);
    text-align: left;
}

.expandable-section:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

.expandable-section:active {
    transform: scale(0.98);
}

.section-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-left i {
    font-size: 18px;
}

.section-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-900);
}

.section-chevron {
    font-size: 18px;
    color: var(--color-gray-400);
    transition: transform var(--transition-slow);
}

.expandable-section:hover .section-chevron {
    transform: translateY(2px);
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */

.floating-action-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2D4A38 0%, #3D6B4F 100%);
    border: none;
    box-shadow: var(--shadow-floating);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 1080;
}

.floating-action-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(45, 74, 56, 0.4);
}

.floating-action-button:active {
    transform: scale(1.05);
}

.floating-action-button i {
    font-size: 28px;
    color: white;
}

/* ============================================
   QUICK ACTIONS MODAL
   ============================================ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1090;
    animation: fadeIn 0.2s ease-out;
}

.quick-actions-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 18px 18px 0 0;
    padding: 1.5rem;
    z-index: 1100;
    animation: slideUp 0.3s ease-out;
    max-width: 480px;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-gray-900);
    margin: 0;
}

.close-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal);
}

.close-button:hover {
    background: var(--color-gray-200);
}

.close-button i {
    font-size: 18px;
    color: var(--color-gray-700);
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-item {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-gray-50);
    border: 0.5px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
    text-align: left;
}

.action-item:hover {
    background: var(--color-white);
    border-color: var(--color-gray-300);
    transform: translateX(2px);
}

.action-item:active {
    transform: scale(0.98);
}

.action-item i {
    font-size: 20px;
    color: var(--color-alpine-darker);
    flex-shrink: 0;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 640px) {
    .client-name {
        font-size: 20px;
    }

    .workout-name {
        font-size: 20px;
    }

    .workout-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .stats-content {
        gap: 16px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 10px;
    }

    .floating-action-button {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .floating-action-button i {
        font-size: 24px;
    }
}

@media (min-width: 481px) {
    .quick-actions-modal {
        left: 50%;
        transform: translateX(-50%);
        max-width: 480px;
    }
}
