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

/* ==== NAVIGATION ==== */

.nav {
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--accent-primary);
}

.logo {
    display: flex;
    align-items: center;
    color: var(--accent-tertiary);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
}

.logo svg {
    color: var(--accent-tertiary);
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5rem;
    transform: translateY(-2px);
}

.nav-links li a {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.02em;

    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-primary);
}

.nav-links li a:active {
    color: var(--accent-primary);
}

/* TODO: COMBINE / EASE / RESPONSIVE */
/* Active States */
.nav-links li a.active {
    padding: 0.5rem 1rem;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: var(--border-primary);

    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links li a.active:hover {
    background-color: transparent;
    color: var(--accent-primary);
    border: var(--border-primary);
}

.nav-links li a.active-secondary {
    padding: 0.5rem 1rem;
    background-color: var(--accent-secondary);
    color: var(--bg-primary);
    border: 1px solid var(--accent-secondary);

    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links li a.active-secondary:hover {
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: var(--accent-secondary);
    border: 1px solid var(--accent-secondary);
}

/* ==== HERO SECTION ==== */

.hero {
    min-height: 100vh;
    padding: 1rem;

    background-image:
        linear-gradient(135deg,
            rgba(50, 50, 50, 0.9),
            rgba(53, 53, 53, 0.7)),
        url("../images/hero-image-gadgets.jpg");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    border-bottom: var(--border-primary);
    text-align: center;
    color: var(--text-primary);

    filter: saturate(1.3) contrast(1.15) brightness(0.9);
}

.claim,
.section-eyebrow {
    font-size: clamp(1rem, 4vw, 1.4rem);
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    padding: 0.5rem 0.75rem;
    display: inline-block;
    letter-spacing: 0.08em;
}

/* .claim {
    border: 1px solid var(--accent-secondary);
} */

.hero h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    padding: 1rem 0;
}

.hero .font-mono {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    line-height: 1.4;
}

.hero-divider {
    margin: 2rem auto;
    width: 80%;
    height: 1px;
    background: linear-gradient(0deg,
            transparent,
            var(--text-muted),
            transparent);
    opacity: 0.2;
}

/* Hero Stats */
.hero-stats-wrapper {
    width: 100%;
}

.hero-stats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;

    text-align: center;
}

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

.hero-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    letter-spacing: 0.08em;
    line-height: 1;
}

.hero-stat-label {
    display: block;
    margin-top: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}


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

.card {
    display: flex;
    flex-direction: column;
    position: relative;

    background: var(--bg-tertiary);
    border: var(--border-primary);
    overflow: hidden;

    transition:
        box-shadow 0.4s ease,
        transform 0.3s ease;
}

.card:hover {
    box-shadow: 1px 1px 15px 6px rgba(255, 0, 128, 0.2);
    transform: translateY(-2px);
}

.card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* transition: transform 1s ease; */
}

/* .card:hover .card-image img {
    transform: scale(1.05);
} */

.card>h3 {
    color: var(--accent-primary);
    padding: 1rem;
    transition: color 0.3s ease;
}

.card>h3:hover {
    color: var(--accent-tertiary);
}

.card>p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0 1rem 1rem;
}

/* Product Badges */
.badge-new,
.badge-limited,
.badge-sale {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;

    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-new {
    background: var(--accent-tertiary);
    color: var(--bg-tertiary);
}

.badge-limited {
    background: var(--accent-primary);
    color: var(--bg-secondary);
}

.badge-sale {
    background: var(--accent-secondary);
    color: var(--bg-secondary);
}

/* Card Footer */
.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.price {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.cart-btn {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;

    font-family: var(--font-mono);
    text-transform: uppercase;
    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.cart-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-tertiary);
}


/* ==== DIY SECTION ==== */

.diy-item {
    position: relative;
    z-index: 0;
    border: 2px solid var(--border);
    padding: 1rem;
    background: var(--bg-tertiary);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.diy-item:hover {
    z-index: 2;
    border-color: var(--accent-secondary);
    box-shadow: 0 12px 28px rgba(0, 255, 0, 0.35);
    transform: translateY(-2px);
}

.diy-item h3 {
    color: var(--accent-secondary);
    padding: 0 0 1rem;
}

.diy-item p {
    font-size: 0.95rem;
}

/* DIY Steps */
.diy-step {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 3rem 2rem 2rem;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.diy-step:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 8px 1px rgba(0, 255, 0, 0.35);
    transform: translateY(-2px);
}

.diy-step:hover h3,
.diy-step:hover svg {
    color: var(--accent-tertiary);
}

/* Step Header */
.diy-step-header h3 {
    margin: 0;
    padding: 0;
}

/* Step Icon */
.diy-step-icon {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    opacity: 0.85;
    transform-origin: center;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.diy-step:hover .diy-step-icon {
    transform: scale(1.5);
    opacity: 1;
}

.diy-step p {
    font-size: 0.95rem;
}


/* ==== MANIFESTO SECTION ==== */

.manifesto-item {
    border: 2px solid var(--border);
    padding: 1rem;
    background: var(--bg-primary);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.manifesto-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 1px 1px 15px 6px rgba(255, 0, 128, 0.2);
    transform: translateY(-2px);
}

.manifesto-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    padding: 0 0 1rem;
}

.manifesto-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.manifesto-icon svg {
    width: 3rem;
    height: 3rem;
    transition: transform 0.3s ease;
}

.manifesto-item:hover .manifesto-icon svg {
    transform: scale(1.15);
}

/* Shared Font Mono Styles */
.manifesto-item p.font-mono,
.diy-item p.font-mono,
.diy-step p.font-mono {
    font-size: 0.9rem;
    text-align: left;
}


/* ==== CONTACT SECTION ==== */

/* Contact Info */
.contact-info h3 {
    color: var(--accent-primary);
    padding-left: 0;
    padding-bottom: 1rem;
}

.contact-info a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-tertiary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
    margin-top: 0.4rem;
    padding: 0.6rem 0.8rem;

    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-primary);

    font-family: var(--font-mono);

    transition: border-color 0.3s ease;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    border-color: var(--accent-primary);
    outline: none;
}

.contact-form button {
    align-self: flex-start;
    margin-left: 2px;
}


/* ==== FOOTER ==== */

.site-footer {
    background: var(--bg-primary);
    border-top: 2px solid var(--accent-primary);
    padding-top: 1rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 360px;
}

/* Footer Headings */
.site-footer h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Footer Links */
.footer-links,
.footer-social {
    padding-top: 0.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 1.5rem;
}

.footer-links ul {
    list-style: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Social Buttons */
.social-btn {
    width: 42px;
    height: 42px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-size: 1.2rem;
    color: var(--text-muted);

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

.social-btn:hover {
    transform: scale(1.1);
}

/* Social Button Color Variants */
.social-btn.accent-1:hover {
    /* border-color: var(--accent-primary); */
    color: var(--accent-primary);
}

.social-btn.accent-2:hover {
    /* border-color: var(--accent-secondary); */
    color: var(--accent-secondary);
}

.social-btn.accent-3:hover {
    /* border-color: var(--accent-tertiary); */
    color: var(--accent-tertiary);
}

/* Footer Bottom Bar */
.footer-bottom {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);

    align-items: center;

    color: var(--text-muted);
    text-transform: uppercase;
}

.footer-bottom .font-mono {
    font-size: 0.8rem;
}


/* ==== 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,
        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.2); */
}

/* 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.3); */
}

/* To Top Button */
.to-top-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 4.1rem;
    z-index: 20;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.6rem 0.8rem;

    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;

    background: var(--accent-tertiary);
    color: var(--bg-primary);
    /* border: 2px solid var(--border); */

    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);
    /* filter: brightness(1.2); */
}

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

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

/* Support Button */
/* .support-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 4.1rem;
    z-index: 20;

    background: var(--accent-secondary);
    color: var(--bg-primary);
    border: none;
    padding: 0.75rem 1.25rem;

    font-family: var(--font-mono);
    text-transform: uppercase;
    cursor: pointer;

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

.support-btn:hover {
    background-color: var(--accent-primary);
    transform: translateY(-2px);
} */


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

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

    /* Hero */
    .hero .section-inner {
        grid-template-rows: auto;
        row-gap: 1.5rem;
    }

    .hero-divider {
        opacity: 0;
    }

    .hero-stats-wrapper {
        display: none;
    }

    /* Footer */
    .footer-bottom .font-mono {
        text-align: center;
    }

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

/* ---- TABLET / SMALL DESKTOP (769px - 1399px) ---- */
@media (min-width: 769px) and (max-width: 1399px) {
    .hero {
        background-size: cover;
    }
}

/* ---- DESKTOP (min-width: 1400px) ---- */
@media (min-width: 1400px) {
    .hero {
        background-size: 100% auto;
        transition: background-size 1s ease;
    }

    .hero:hover {
        background-size: 102% auto;
    }
}

/* TODO: FIX? Burger Menu? */

/* ---- OPTIONAL:  Button Positions (Mobile) ---- */
/* @media (max-width: 768px) {
    .to-top-btn {
        bottom: 11rem;
    }

    .support-btn {
        bottom: 7.5rem;
    }
} */

/* ---- LARGE DESKTOP (Alternative) ---- */
/* @media (hover: hover) and (pointer: fine) and (min-width: 1400px) {
    .hero {
        background-size: 100% auto;
        transition: background-size 1s ease;
    }

    .hero:hover {
        background-size: 102% auto;
    }
} */