/**
 * Developer: Mohammed Al-Baqer
 * Website: https://wsl-iq.github.io/teaafi/
 * Copyright (c) 2026 Mohammed Al-Baqer
 * Folder : css
 * File   : hormonal-wellness-men.css
 * Type   : CSS
 */

/*
 * HORMONAL WELLNESS (MEN)
 **/

.hwm-page {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 32px;
    direction: rtl;
}

.hwm-header {
    text-align: center;
    margin-bottom: 20px;
}

.hwm-header-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #1565C0;
    font-size: 26px;
}

.hwm-subtitle {
    max-width: 560px;
    margin: 8px auto 0;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 14px;
}

/* Score Card */
.hwm-score-card {
    background: linear-gradient(135deg, #1565C0, #42A5F5);
    color: white;
    border-radius: 20px;
    padding: 22px;
    text-align: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.3);
    position: relative;
    overflow: hidden;
}

.hwm-score-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: hwmRotate 25s linear infinite;
    pointer-events: none;
}

@keyframes hwmRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hwm-score-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.hwm-score-value {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.hwm-score-value small {
    font-size: 20px;
    opacity: 0.7;
}

.hwm-score-caption {
    font-size: 13px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Summary row */
.hwm-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.hwm-summary-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.hwm-summary-card:hover {
    transform: translateY(-2px);
}

.hwm-summary-card i {
    font-size: 20px;
    margin-bottom: 6px;
    display: block;
}

.hwm-summary-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
}

.hwm-summary-label {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Section */
.hwm-section {
    margin-bottom: 18px;
}

.hwm-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.hwm-section-title i {
    color: #1565C0;
}

.hwm-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

/* Rating rows (1-5) */
.hwm-rating-field {
    margin-bottom: 14px;
}

.hwm-rating-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.hwm-rating-label small {
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 11px;
}

.hwm-rating-options {
    display: flex;
    gap: 6px;
}

.hwm-rating-btn {
    flex: 1;
    padding: 10px 4px;
    border-radius: 10px;
    border: 2px solid var(--border-light);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.hwm-rating-btn:hover {
    border-color: #1565C0;
    color: #1565C0;
}

.hwm-rating-btn.selected {
    background: #E3F2FD;
    border-color: #1565C0;
    color: #1565C0;
    transform: scale(1.03);
}

/* Toggle */
.hwm-toggle-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-variant);
    margin-bottom: 14px;
}

.hwm-toggle-field span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Form textarea */
.hwm-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.7;
    min-height: 70px;
    resize: vertical;
    transition: border-color 0.2s;
}

.hwm-textarea:focus {
    outline: none;
    border-color: #1565C0;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

/* Actions */
.hwm-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.hwm-actions .btn {
    flex: 1;
}

/* Chart */
.hwm-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 140px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.hwm-chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.hwm-chart-bar {
    width: 100%;
    min-height: 6px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #1565C0, #42A5F5);
    transition: height 0.4s ease;
}

.hwm-chart-bar.is-low {
    background: linear-gradient(180deg, #F44336, #EF5350);
}

.hwm-chart-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-align: center;
    white-space: nowrap;
}

.hwm-chart-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

/* History */
.hwm-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hwm-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-variant);
    border: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.hwm-history-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #1565C0;
    font-size: 16px;
}

.hwm-history-info {
    flex: 1;
    min-width: 0;
}

.hwm-history-info strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.hwm-history-info small {
    display: block;
    color: var(--text-tertiary);
    font-size: 11px;
}

.hwm-history-delete {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--surface);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hwm-history-delete:hover {
    background: #FFEBEE;
    color: #F44336;
    border-color: #F44336;
}

/* Insight banner */
.hwm-insight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    border-right: 4px solid #1565C0;
    background: rgba(21, 101, 192, 0.06);
}

.hwm-insight i {
    color: #1565C0;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hwm-insight p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Empty state */
.hwm-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.hwm-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.4;
}

.hwm-empty p {
    font-size: 13px;
    margin: 0;
}

/* Dark mode */
.theme-dark .hwm-summary-card,
.theme-dark .hwm-card,
.theme-dark .hwm-history-item {
    background: var(--surface);
    border-color: var(--border);
}

.theme-dark .hwm-insight {
    background: rgba(33, 150, 243, 0.12);
}

.theme-dark .hwm-toggle-field {
    background: #252525;
}

/* Responsive */
@media (max-width: 700px) {
    .hwm-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .hwm-score-value {
        font-size: 44px;
    }

    .hwm-summary-value {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hwm-score-card::before {
        animation: none !important;
    }

    .hwm-summary-card,
    .hwm-chart-bar,
    .hwm-rating-btn {
        transition: none !important;
    }
}