/* ================================================
   Beauty Ziv — Components CSS
   Buttons, Cards, Forms, Badges, etc.
   ================================================ */

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    min-height: 48px; /* WCAG touch target */
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button — Gold */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white;
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
}

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

/* Secondary Button — Outline */
.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-secondary:hover {
    background: var(--gold-primary);
    color: white;
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-dark);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--cream);
    color: var(--gold-dark);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: var(--accent-whatsapp);
    color: white;
    border-color: var(--accent-whatsapp);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    min-height: 40px;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    min-height: 56px;
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
    min-height: 64px;
}

/* Full Width */
.btn-block {
    width: 100%;
}

/* Icon Only Button */
.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
    width: 40px;
    height: 40px;
}

.btn-icon.btn-lg {
    width: 56px;
    height: 56px;
}


/* ═══════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════ */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

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

.card-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin: 0;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: var(--space-1);
}

.card-body {
    color: var(--text-medium);
}

.card-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

/* Service Card */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--gold-primary);
    transform: translateX(-4px);
    box-shadow: var(--shadow-soft);
}

.service-card-name {
    font-weight: var(--font-medium);
    color: var(--text-dark);
}

.service-card-desc {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: var(--space-1);
}

.service-card-price {
    font-weight: var(--font-bold);
    color: var(--gold-primary);
    font-size: var(--text-lg);
    white-space: nowrap;
}

/* Featured Card */
.card-featured {
    position: relative;
    overflow: hidden;
    border-color: var(--gold-primary);
}

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


/* ═══════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════ */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

.form-label.required::after {
    content: ' *';
    color: var(--accent-error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--text-dark);
    background: var(--card-bg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--border-medium);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Form Help Text */
.form-help {
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: var(--space-1);
}

/* Form Error */
.form-error {
    border-color: var(--accent-error) !important;
}

.form-error-message {
    font-size: var(--text-xs);
    color: var(--accent-error);
    margin-top: var(--space-1);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
    cursor: pointer;
    accent-color: var(--gold-primary);
}

.form-check-input[type="radio"] {
    border-radius: var(--radius-full);
}

.form-check-label {
    font-size: var(--text-base);
    color: var(--text-dark);
    cursor: pointer;
}


/* ═══════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
}

.badge-gold {
    background: var(--gold-light);
    color: var(--gold-dark);
}

.badge-success {
    background: rgba(76, 175, 80, 0.15);
    color: var(--accent-success);
}

.badge-warning {
    background: rgba(255, 183, 77, 0.15);
    color: var(--accent-warning);
}

.badge-error {
    background: rgba(229, 115, 115, 0.15);
    color: var(--accent-error);
}

.badge-promo {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════ */

.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    border-right: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--accent-success);
    color: var(--accent-success);
}

.alert-warning {
    background: rgba(255, 183, 77, 0.1);
    border-color: var(--accent-warning);
    color: #b45309;
}

.alert-error {
    background: rgba(229, 115, 115, 0.1);
    border-color: var(--accent-error);
    color: var(--accent-error);
}

.alert-info {
    background: rgba(100, 181, 246, 0.1);
    border-color: var(--accent-info);
    color: var(--accent-info);
}


/* ═══════════════════════════════════════════════
   AVATAR / PROFILE IMAGE
   ═══════════════════════════════════════════════ */

.avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--gold-primary);
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 80px; height: 80px; }
.avatar-xl { width: 120px; height: 120px; }
.avatar-2xl { width: 180px; height: 180px; }

.avatar-glow {
    box-shadow: 0 0 25px var(--gold-glow);
}


/* ═══════════════════════════════════════════════
   DIVIDERS
   ═══════════════════════════════════════════════ */

.divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-6) 0;
}

.divider-gold {
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.divider-text {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--text-light);
    font-size: var(--text-sm);
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}


/* ═══════════════════════════════════════════════
   LOADER / SPINNER
   ═══════════════════════════════════════════════ */

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-light);
    border-top-color: var(--gold-primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }


/* ═══════════════════════════════════════════════
   TOOLTIP
   ═══════════════════════════════════════════════ */

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-2) var(--space-3);
    background: var(--text-dark);
    color: white;
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}


/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-base);
}

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

.modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--cream);
    color: var(--text-dark);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}


/* ═══════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════ */

.tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: 2px solid var(--border-light);
    margin-bottom: var(--space-6);
}

.tab-btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-light);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

.tab-content {
    display: none;
    animation: fadeIn var(--transition-base);
}

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


/* ═══════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════ */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--cream) 25%,
        var(--cream-dark) 50%,
        var(--cream) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: var(--space-3);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}
