/* Cost Per Wear Calculator - Calculator-specific styles only */
/* ⚠️ DO NOT redefine global classes: .glass-card, .form-input, .btn-custom, .btn-sponsor */
/* Global classes are defined in Content/layout.css */

/* ===== Result Display ===== */
.cpw-result-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
    margin-bottom: 15px;
}

.cpw-result-label {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 8px;
}

.cpw-result-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cpw-result-unit {
    font-size: 1rem;
    color: #64748b;
    margin-left: 4px;
}

/* ===== Total Uses Display ===== */
.total-uses-card {
    text-align: center;
    padding: 15px;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 12px;
    margin-bottom: 15px;
}

.total-uses-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: #48bb78;
}

/* ===== Evaluation Display ===== */
.evaluation-card {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.evaluation-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
}

.evaluation-text.eval-excellent {
    color: #10b981;
}

.evaluation-text.eval-good {
    color: #48bb78;
}

.evaluation-text.eval-moderate {
    color: #f59e0b;
}

.evaluation-text.eval-caution {
    color: #f97316;
}

.evaluation-text.eval-warning {
    color: #ef4444;
}

/* ===== Chart Container ===== */
.cpw-chart-container {
    position: relative;
    height: 200px;
    margin-top: 15px;
}

/* ===== Input Group Custom ===== */
.cpw-input-group {
    margin-bottom: 15px;
}

.cpw-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

/* ===== Tooltip Icon ===== */
.cpw-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.75rem;
    cursor: help;
    position: relative;
}

.cpw-tooltip-icon:hover {
    background: #667eea;
    color: white;
}

.cpw-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
    transition: opacity 0.2s ease;
}

.cpw-tooltip-icon:hover .cpw-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===== Frequency Row ===== */
.frequency-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.frequency-row > div:first-child {
    flex: 1;
}

.frequency-row > div:last-child {
    flex: 1;
}

/* ===== Tips Section ===== */
.cpw-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cpw-tips-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

.cpw-tips-list li:last-child {
    margin-bottom: 0;
}

.cpw-tip-title {
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 4px;
}

.cpw-tip-content {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* ===== Reference Section ===== */
.cpw-reference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cpw-reference-item:last-child {
    border-bottom: none;
}

.cpw-reference-category {
    font-weight: 500;
    color: #374151;
}

.cpw-reference-range {
    font-size: 0.85rem;
    color: #64748b;
    text-align: right;
}

/* ===== Quick Examples Section ===== */
.cpw-quick-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cpw-example-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    color: #374151;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cpw-example-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
    transform: translateY(-1px);
}

.cpw-example-btn:active {
    transform: translateY(0);
}

.cpw-example-icon {
    font-size: 1.1rem;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 767px) {
    .cpw-result-value {
        font-size: 2rem;
    }

    .total-uses-value {
        font-size: 1.5rem;
    }

    .frequency-row {
        flex-direction: column;
        gap: 15px;
    }

    .cpw-reference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .cpw-reference-range {
        text-align: left;
    }

    .cpw-example-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .cpw-result-value {
        font-size: 2.2rem;
    }
}
