/* ============================================
   COMPONENTS.CSS - PUNKROCK GADGETS
   ============================================ */

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

/* ==== CTA Buttons Base ==== */
.cta-buttons {
    margin-top: 1.4rem;
    font-family: var(--font-mono);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.primary-btn,
.secondary-btn {
    text-decoration: none;
    padding: 0.8rem 2rem;
    display: inline-block;
    margin: 0 0.5rem;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        filter 0.3s ease,
        transform 0.3s ease;
}

/* ==== Primary Button ==== */
.primary-btn {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: 2px solid var(--accent-primary);
}

.primary-btn:hover {
    background-color: var(--accent-primary);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ==== Secondary Button ==== */
.secondary-btn {
    background-color: #1c1c1c9e;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.secondary-btn:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ==== To Top Button ==== */

.to-top-btn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
}

.to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: fixed;
    right: 2rem;
    bottom: 4.1rem;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0.6rem 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--accent-tertiary);
    color: var(--bg-primary);
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.to-top-btn:hover {
    background-color: var(--accent-primary);
    transform: translateY(-2px);
}


.to-top-btn svg {
    transition: transform 0.3s ease;
}

.to-top-btn:hover svg {
    transform: translateY(-2px);
}

/* ==== MEDIA QUERIES ==== */

/* ---- MOBILE (max-width: 768px) ---- */
@media (max-width: 768px) {

    /* Buttons */
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}