/* 
  THE REVERSE TIMES - DESIGN SYSTEM
  Centralized UI Components for consistent layout and accessible design.
*/

/* =========================================
   1. TYPOGRAPHY UTILITIES
   ========================================= */
.ds-title-xl { font-family: var(--ff-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.ds-title-lg { font-family: var(--ff-display); font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem; }
.ds-title-md { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
.ds-title-sm { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; }

.ds-body-lg { font-family: var(--ff-body); font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }
.ds-body-md { font-family: var(--ff-body); font-size: 1rem; line-height: 1.75; color: var(--text); }
.ds-body-sm { font-family: var(--ff-body); font-size: 0.9rem; line-height: 1.6; color: var(--text-faint); }

.ds-label { font-family: var(--ff-label); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.ds-italic { font-family: var(--ff-italic); font-style: italic; font-weight: 300; }

/* =========================================
   2. BUTTONS
   ========================================= */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--ff-label);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ds-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* Primary Brand Button */
.ds-btn-primary {
    background: var(--gold);
    color: var(--bg);
    font-weight: bold;
}
.ds-btn-primary:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Outline Button */
.ds-btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.ds-btn-outline:hover {
    background: var(--gold10);
    color: var(--gold);
}

/* Ghost / Text Link Button */
.ds-btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}
.ds-btn-ghost:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* =========================================
   3. CARDS & CONTAINERS
   ========================================= */
.ds-card {
    background: var(--dark2);
    padding: 2rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.ds-card-interactive:hover {
    background: var(--dark3);
    border-color: var(--gold30);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.ds-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ds-container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   4. FORMS & INPUTS
   ========================================= */
.ds-form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ds-label-input {
    font-family: var(--ff-label);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ds-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--ff-body);
    font-size: 1rem;
    background: var(--bg);
    border: 1px solid var(--gold30);
    color: var(--text);
    transition: border-color 0.3s ease;
}

.ds-input:focus {
    outline: none;
    border-color: var(--gold);
}

.ds-input::placeholder {
    color: var(--text-faintest);
}

/* =========================================
   5. BADGES & INDICATORS
   ========================================= */
.ds-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--gold10);
    color: var(--gold);
    font-family: var(--ff-label);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--gold30);
}

/* Live Blinking Dot (for 'Today Exclusive' etc) */
.ds-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gold);
    margin-right: 0.4rem;
    box-shadow: 0 0 0 0 rgba(227, 64, 31, 0.7);
    animation: ds-pulse 2s infinite;
}

@keyframes ds-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(227, 64, 31, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(227, 64, 31, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(227, 64, 31, 0); }
}
