/* HyperAI Component Library - Reusable Components */
/* Import design-tokens.css first, then this file */

/* ============================================
   BUTTONS
   ============================================ */

/* Primary Button (Purple Gradient) */
.btn-primary {
    background: var(--purple-gradient);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: var(--font-semibold);
    font-size: var(--font-base);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--button-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-glow-hover);
    color: var(--text-primary);
    text-decoration: none;
}

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

/* Gold Button */
.btn-gold {
    background: var(--gold-gradient);
    color: var(--primary-black);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: var(--font-semibold);
    font-size: var(--font-base);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--button-glow-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-glow-gold-hover);
    color: var(--primary-black);
    text-decoration: none;
}

/* Secondary Button (Outline) */
.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: var(--font-semibold);
    font-size: var(--font-base);
    border: 2px solid var(--primary-gold);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--button-glow-gold);
    text-decoration: none;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: var(--font-lg);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

/* Card with gradient top border */
.card-gradient {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-gradient);
    z-index: 1;
}

.card:hover,
.card-gradient:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

/* Dark Card */
.card-dark {
    background: var(--secondary-black);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-white);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    color: var(--text-primary);
}

.card-dark:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover), var(--shadow-glow);
    border-color: var(--primary-gold);
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-normal);
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--modal-shadow);
    animation: modalSlideIn var(--transition-bounce);
    position: relative;
    z-index: var(--z-modal);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    z-index: calc(var(--z-modal) + 1);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    transform: scale(1.1);
}

/* ============================================
   TEXT EFFECTS
   ============================================ */

/* Glowing Gold Text - Minimal glow by default, glow on hover */
.text-glow {
    color: var(--primary-gold);
    text-shadow: none;
    transition: text-shadow var(--transition-normal);
}

.text-glow:hover {
    text-shadow: var(--text-glow-sm);
}

.text-glow-sm {
    color: var(--primary-gold);
    text-shadow: none;
    transition: text-shadow var(--transition-normal);
}

.text-glow-sm:hover {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.text-glow-md {
    color: var(--primary-gold);
    text-shadow: none;
    transition: text-shadow var(--transition-normal);
}

.text-glow-md:hover {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Gradient Text */
.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   INPUTS & FORMS
   ============================================ */

.input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    transition: all var(--transition-normal);
    background: var(--bg-light);
    font-family: var(--font-primary);
}

.input:focus {
    outline: none;
    border-color: var(--purple-primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* ============================================
   ICONS
   ============================================ */

.icon-container {
    width: 60px;
    height: 60px;
    background: var(--purple-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: var(--font-2xl);
    transition: all var(--transition-normal);
}

.icon-container:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.icon-container-gold {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: var(--font-2xl);
    transition: all var(--transition-normal);
}

.icon-container-gold:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow-strong);
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.badge-gold {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.badge-purple {
    background: rgba(102, 126, 234, 0.1);
    color: var(--purple-primary);
    border-color: var(--purple-primary);
}

/* ============================================
   LOADING STATES
   ============================================ */

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 215, 0, 0.1);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Backdrop Blur */
.backdrop-blur {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.backdrop-blur-dark {
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Lift */
.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Hover Scale */
.hover-scale {
    transition: all var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    .btn-primary,
    .btn-gold,
    .btn-secondary {
        padding: 10px 20px;
        font-size: var(--font-sm);
    }
    
    .card,
    .card-gradient,
    .card-dark {
        padding: var(--space-md);
        border-radius: var(--radius-xl);
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
}

