/* Explain: Styling for reusable UI components like buttons, cards, and panels. */
.metal-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184, 190, 198, 0.15);
    background:
        linear-gradient(145deg, rgba(244, 239, 231, 0.05), rgba(17, 19, 21, 0.95)),
        var(--surface-color);
    box-shadow: var(--shadow-black);
    backdrop-filter: blur(20px);
}

.metal-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(193, 18, 31, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.metal-panel:hover::before {
    opacity: 1;
}

.metal-panel > * {
    position: relative;
    z-index: 1;
}

.metal-panel::after {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 42%, transparent 58%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 2;
}

.metal-panel:hover::after {
    transform: translateX(100%);
}

.angled-panel {
    clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 2rem 100%, 0 calc(100% - 2rem));
}

.btn-redline {
    border: 1px solid rgba(193, 18, 31, 0.72);
    background: linear-gradient(135deg, var(--primary-color), #7e1017);
    color: var(--text-color);
    box-shadow: 0 16px 32px rgba(193, 18, 31, 0.24);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-redline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-redline:hover::after {
    transform: translateX(100%);
}

.btn-redline:hover,
.btn-redline:focus-visible {
    background: linear-gradient(135deg, #dd1827, var(--primary-hover));
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(193, 18, 31, 0.4), 0 0 15px rgba(193, 18, 31, 0.3);
    border-color: #ff3344;
}

.btn-chrome {
    border: 1px solid rgba(184, 190, 198, 0.35);
    background: linear-gradient(135deg, rgba(244, 239, 231, 0.08), rgba(184, 190, 198, 0.02));
    color: var(--text-color);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-chrome:hover,
.btn-chrome:focus-visible {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(184, 190, 198, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.spec-pill {
    border: 1px solid rgba(184, 190, 198, 0.24);
    background: rgba(244, 239, 231, 0.06);
    color: var(--chrome-soft);
}

.product-card {
    isolation: isolate;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.product-card:hover {
    transform: translateY(-6px) rotate(-0.2deg);
    border-color: rgba(193, 18, 31, 0.55);
    box-shadow: var(--shadow-red);
}

.product-card img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
    filter: contrast(1.08) saturate(1.08);
}

.category-plate {
    border: 1px solid rgba(184, 190, 198, 0.15);
    background: linear-gradient(135deg, rgba(244, 239, 231, 0.05), rgba(17, 19, 21, 0.95));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-plate:hover {
    border-color: rgba(193, 18, 31, 0.6);
    background: linear-gradient(135deg, rgba(193, 18, 31, 0.1), rgba(17, 19, 21, 0.95));
    box-shadow: 0 20px 40px rgba(193, 18, 31, 0.15);
}

.selected-option,
.option-chip[aria-pressed="true"] {
    border-color: var(--accent-color) !important;
    background: rgba(242, 169, 0, 0.14) !important;
    color: var(--text-color) !important;
}

.toast-rail {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    display: grid;
    gap: 0.75rem;
    width: min(24rem, calc(100vw - 2rem));
}

.site-toast {
    border: 1px solid rgba(184, 190, 198, 0.32);
    background: rgba(17, 19, 21, 0.94);
    color: var(--text-color);
    box-shadow: var(--shadow-black);
    backdrop-filter: blur(14px);
}

.header-link {
    position: relative;
    color: var(--text-muted);
}

.header-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.4rem;
    height: 2px;
    background: var(--primary-color);
    transition: right 0.22s ease;
}

.header-link:hover,
.header-link:focus-visible {
    color: var(--text-color);
}

.header-link:hover::after,
.header-link:focus-visible::after {
    right: 0;
}

.cyber-card {
    position: relative;
    background: linear-gradient(145deg, rgba(25, 28, 31, 0.8), rgba(11, 12, 13, 0.95));
    border: 1px solid rgba(184, 190, 198, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.5rem), calc(100% - 1.5rem) 100%, 0 100%);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 3px; height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
    z-index: 10;
}

.cyber-card:hover {
    border-color: rgba(193, 18, 31, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(193, 18, 31, 0.15);
}

.cyber-card:hover::before {
    transform: scaleY(1);
}

.vip-card {
    background: radial-gradient(circle at 100% 0%, rgba(193, 18, 31, 0.15) 0%, transparent 60%), var(--surface-raised);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    isolation: isolate;
    backdrop-filter: blur(15px);
}

.vip-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(0, 0, 0, 0.1) 8px, rgba(0, 0, 0, 0.1) 16px);
    z-index: -1;
    pointer-events: none;
}
