/* ==========================================================
   COMPONENTS: BUTTONS, CARDS, FORMS, TABS, ACCORDION, MODALS
   ========================================================== */

/* 1. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.btn-block {
    width: 100%;
}

/* Primary Button (Gold Gradient) */
.btn-primary {
    background: var(--gold-gradient);
    color: #0A0D14;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: var(--gold-gradient-hover);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(184, 134, 11, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button (Dark / Bordered) */
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #0A0D14;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    background: #FFFFFF;
    color: #0F172A;
    border-color: #FFFFFF;
}

/* Button Shimmer Effect */
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(25deg);
    animation: shimmer 3.5s infinite;
}

/* 2. CARDS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.card-dark {
    background: #111622;
    border: 1px solid #1F2738;
    color: #FFFFFF;
}

.card-dark:hover {
    border-color: var(--gold-primary);
}

/* 3. BADGES & PILLS */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-gold {
    background: var(--gold-light);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
}

.badge-dark {
    background: rgba(15, 23, 42, 0.9);
    color: #F8FAFC;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-emerald {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

/* 4. FORMS */
.form-group {
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-control, .form-select, .form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus, .form-select:focus, .form-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px var(--gold-glow);
    background: var(--bg-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B8860B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

/* 5. TABS COMPONENT */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

.tab-btn.active {
    background: var(--gold-gradient);
    border-color: transparent;
    color: #0A0D14;
    box-shadow: var(--shadow-gold);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

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

/* 6. ACCORDION COMPONENT */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.accordion-item.active {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.accordion-header:hover {
    color: var(--gold-primary);
}

.accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    background: var(--gold-primary);
    color: #0A0D14;
}

.accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.accordion-body {
    padding: 0 24px 20px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 7. MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: all var(--transition-smooth);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gold-primary);
    color: #0A0D14;
    transform: rotate(90deg);
}

/* 8. TOAST NOTIFICATION */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-card);
    border-left: 4px solid var(--gold-primary);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
    min-width: 280px;
    max-width: 420px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-success {
    border-left-color: var(--accent-emerald);
}

.toast.toast-error {
    border-left-color: #EF4444;
}
