/*
  =================================================================
  فایل استایل اختصاصی محاسبه‌گر حداکثر یک تکرار (1RM)
  نسخه: 2.0 - شامل استایل‌های E-E-A-T و A11y
  =================================================================
*/

/* --- Input with Unit --- */
.input-wrapper .input-unit {
    position: absolute;
    left: 15px; /* For RTL */
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text-color);
    font-size: 0.9rem;
    font-weight: bold;
}
.form-group .info-text {
    font-size: 0.85rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

/* --- Custom 1RM Result Card --- */
.result-card-orm {
    background: linear-gradient(145deg, var(--text-color), #424242); /* Dark theme */
    color: white;
    border-radius: var(--border-radius-base);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.result-card-orm.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-card-orm .main-result {
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.result-card-orm .result-header h3 {
    font-size: 1.1rem;
    font-weight: normal;
    opacity: 0.8;
    margin-bottom: 10px;
}

.result-card-orm .result-value {
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: bold;
    line-height: 1.1;
    color: var(--accent-color); /* Highlight color */
}

.result-card-orm .unit {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: -5px;
}

/* --- Percentages Section --- */
.percentages-section h4 {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}
.percentages-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    text-align: right;
}
.percentages-list li {
    font-size: 1rem;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
    display: flex;
    justify-content: space-between;
}
.percentages-list li strong {
    font-weight: bold;
    color: var(--accent-color);
}

.result-card-orm .secondary-cta {
    background-color: var(--accent-color);
    color: var(--text-color);
    font-weight: bold;
    margin-top: 15px;
}
.result-card-orm .secondary-cta:hover {
    background-color: #ff9ac1;
    box-shadow: 0 4px 10px rgba(255, 122, 162, 0.3);
}

/* --- Content Table Styles --- */
.orm-table-container {
    overflow-x: auto;
    margin: 20px 0;
}
table { width: 100%; border-collapse: collapse; text-align: center; }
th, td { padding: 12px 15px; border: 1px solid var(--border-color); vertical-align: middle; }
th { background-color: var(--bg-color); font-weight: bold; }
tbody tr:nth-child(even) { background-color: #f8f7ff; }


/* --- A11y: Reduce Motion --- */
@media (prefers-reduced-motion: reduce) {
  .result-card-orm,
  .result-card-orm.visible {
    transition: none;
    opacity: 1;
    transform: translateY(0);
  }
  
  html {
    scroll-behavior: auto;
  }
}