/* ============================================================
   Division 9 — Specials Portal (index9.html)
   Page-specific styles not covered by division9.css
   ============================================================ */

/* ── Scroll Indicator ── */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.2s forwards;
}

.scroll-indicator span {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 1px solid var(--gold-muted);
    border-bottom: 1px solid var(--gold-muted);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

/* ── Deal Section ── */
.deal-section {
    padding: 80px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.deal-card {
    background: var(--black-soft);
    border: 1px solid var(--border-subtle);
    padding: 56px 48px;
    text-align: center;
    position: relative;
}

.deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.deal-badge {
    display: inline-block;
    background: var(--gold-primary);
    color: #FFFFFF;
    padding: 6px 16px;
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.deal-title {
    font-family: 'Cormorant', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.deal-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ── Countdown ── */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.countdown-item {
    background: var(--black-medium);
    border: 1px solid var(--border-subtle);
    padding: 20px 24px;
    min-width: 80px;
}

.countdown-value {
    font-family: 'Cormorant', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--gold-primary);
}

.countdown-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* ── Search ── */
.search-section {
    padding: 32px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    background: var(--black-soft);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--gold-muted);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--gold-muted);
}

/* ── Category Filters ── */
.category-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 32px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filter-btn:hover {
    border-color: var(--gold-muted);
    color: var(--gold-primary);
}

.filter-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #FFFFFF;
    font-weight: 300;
}

/* ── Services Grid ── */
.services-section {
    padding: 48px 24px 100px;
    max-width: 1300px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

/* ── Admin Panel ── */
.admin-modal .modal {
    max-width: 800px;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 32px;
}

.admin-tab {
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.admin-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.admin-tab:hover {
    color: var(--text-secondary);
}

.admin-tab.active {
    color: var(--gold-primary);
}

.admin-tab.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
}

.login-form,
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Admin List ── */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
}

.admin-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--black-medium);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s ease;
}

.admin-item:hover {
    border-color: var(--border-accent);
}

.admin-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-muted));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-item-icon svg {
    width: 18px;
    height: 18px;
    stroke: #FFFFFF;
}

.admin-item-content {
    flex: 1;
    min-width: 0;
}

.admin-item-title {
    font-weight: 300;
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-item-category {
    font-size: 0.65rem;
    color: var(--gold-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-item-actions {
    display: flex;
    gap: 6px;
}

.admin-item-btn {
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-item-btn:hover {
    border-color: var(--gold-muted);
    color: var(--gold-primary);
}

.admin-item-btn.delete:hover {
    border-color: #c75050;
    color: #c75050;
}

.admin-item-btn svg {
    width: 14px;
    height: 14px;
}

/* ── Password Management ── */
.password-instructions {
    margin-bottom: 15px;
    color: #aaa;
    font-size: 0.9rem;
}

.portal-password-group {
    background: rgba(255, 215, 0, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.password-hint {
    color: #888;
    font-size: 0.8rem;
}

.password-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .services-section {
        padding: 32px 16px 64px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .category-filters {
        padding: 20px 16px;
    }

    .admin-tabs {
        flex-wrap: wrap;
        padding: 0 20px;
    }

    .countdown-container {
        flex-wrap: wrap;
    }

    .deal-section {
        padding: 48px 16px;
    }

    .deal-card {
        padding: 36px 20px;
    }
}