/* =========================================
   NEON THEME - COMPONENTS
   Reusable UI Components
   ========================================= */

/* =========================================
   1. BUTTONS
   ========================================= */

.btn {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    clip-path: polygon(var(--clip-angle) 0,
            100% 0,
            100% calc(100% - var(--clip-angle)),
            calc(100% - var(--clip-angle)) 100%,
            0 100%,
            0 var(--clip-angle));
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Primary Button */
.btn-primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--accent-primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color-strong);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Accent Button */
.btn-accent {
    background: var(--accent-secondary);
    color: var(--text-inverse);
}

.btn-accent:hover {
    background: var(--accent-secondary-hover);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* =========================================
   2. CARDS
   ========================================= */

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    clip-path: polygon(var(--clip-angle) 0,
            100% 0,
            100% calc(100% - var(--clip-angle)),
            calc(100% - var(--clip-angle)) 100%,
            0 100%,
            0 var(--clip-angle));
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* Card with glow border effect */
.card-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-neon);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-glow:hover::before {
    opacity: 1;
}

/* =========================================
   3. BADGES
   ========================================= */

.badge {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.badge-secondary {
    background: var(--accent-secondary);
    color: #fff;
}

.badge-success {
    background: var(--accent-success);
    color: #fff;
}

.badge-warning {
    background: var(--accent-warning);
    color: #000;
}

.badge-danger {
    background: var(--accent-danger);
    color: #fff;
}

/* Sale/Discount Badge */
.badge-sale {
    background: var(--accent-danger);
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
    padding-left: 12px;
}

/* =========================================
   4. SECTION TITLES
   ========================================= */

.section-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 30px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.section-title span {
    color: var(--accent-primary);
}

/* =========================================
   5. ICON BUTTONS
   ========================================= */

.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0,
            100% calc(100% - 8px),
            calc(100% - 8px) 100%,
            0 100%, 0 8px);
    transition: all var(--transition-fast);
    position: relative;
}

.icon-btn:hover {
    background: var(--accent-primary);
    color: var(--text-inverse);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.icon-btn .count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-secondary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 2px;
    min-width: 18px;
    text-align: center;
}

/* =========================================
   6. PRICE DISPLAY
   ========================================= */

.price {
    font-family: var(--font-head);
    font-weight: 700;
}

.price-current {
    font-size: 1.4rem;
    color: var(--accent-primary);
}

.price-old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.price-discount {
    font-size: 0.85rem;
    color: var(--accent-danger);
    font-weight: 600;
    margin-left: 8px;
}

/* =========================================
   7. TAGS
   ========================================= */

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-block;
}

.tag-crypto {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* =========================================
   8. CONTAINER & GRID
   ========================================= */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {

    .grid-5,
    .grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {

    .grid-4,
    .grid-5,
    .grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   9. ANIMATIONS
   ========================================= */

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--accent-primary);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-primary), 0 0 30px var(--accent-primary);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-glow {
    animation: glow 2s infinite;
}

.animate-slideUp {
    animation: slideUp 0.4s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

/* =========================================
   10. UTILITIES
   ========================================= */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--text-primary);
}

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

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

.text-accent {
    color: var(--accent-primary);
}

.bg-panel {
    background: var(--bg-panel);
}

.bg-body {
    background: var(--bg-body);
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.py-section {
    padding: var(--space-3xl) 0;
}