@import "tailwindcss";

/* ─── Design Tokens ─── */
@theme {
    --color-pamtech-red: #E11D2E;
    --color-pamtech-red-dark: #B91C2C;
    --color-pamtech-blue: #3B82F6;
    --color-pamtech-blue-dark: #2563EB;
    --color-surface: #FAFAFA;
    --color-surface-dark: #09090B;
    --color-border: #E4E4E7;
    --color-border-dark: #27272A;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

@source "../views/**/*.blade.php";
@source "../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php";
@source "../../storage/framework/views/*.php";

/* ─── Base ─── */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Navigation ─── */
.nav-hardware {
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-hardware-light {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link-light {
    color: #52525B;
}

.nav-link-light:hover {
    color: #09090B;
}

/* ─── Engineering Grid Patterns ─── */
.engineering-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
}

.engineering-grid-light {
    background-image:
        linear-gradient(rgba(9, 9, 11, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 9, 11, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
}

.engineering-dots {
    background-image: radial-gradient(circle, rgba(225, 29, 46, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ─── Hero ─── */
.hero-dark {
    background: linear-gradient(180deg, #09090B 0%, #18181B 50%, #09090B 100%);
}

.hero-glow-red {
    background: radial-gradient(ellipse 60% 50% at 20% 40%, rgba(225, 29, 46, 0.18) 0%, transparent 70%);
}

.hero-glow-blue {
    background: radial-gradient(ellipse 50% 40% at 80% 60%, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.hero-scan-line {
    background: linear-gradient(180deg, transparent 0%, rgba(225, 29, 46, 0.04) 50%, transparent 100%);
    animation: scanLine 8s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ─── Labels & Badges ─── */
.label-tech {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4ADE80;
}

.badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    animation: pulse-glow 2s ease-in-out infinite;
}

.badge-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #71717A;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--color-pamtech-red);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--color-pamtech-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(225, 29, 46, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary-light {
    color: #09090B;
    border-color: var(--color-border);
}

.btn-secondary-light:hover {
    background: #F4F4F5;
    border-color: #D4D4D8;
}

/* ─── Cards ─── */
.hardware-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hardware-card:hover {
    border-color: #D4D4D8;
    box-shadow: 0 8px 30px rgba(9, 9, 11, 0.06);
    transform: translateY(-2px);
}

.hardware-card-dark {
    background: #18181B;
    border: 1px solid var(--color-border-dark);
    border-radius: 0.75rem;
    transition: border-color 0.2s ease;
}

.hardware-card-dark:hover {
    border-color: #3F3F46;
}

.spec-card {
    background: #FAFAFA;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
}

.spec-card:hover {
    border-color: #D4D4D8;
}

/* ─── Forms ─── */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #FAFAFA;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #09090B;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--color-pamtech-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-dark {
    background: #18181B;
    border-color: var(--color-border-dark);
    color: #FAFAFA;
}

.form-input-dark:focus {
    background: #27272A;
    border-color: var(--color-pamtech-red);
    box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.15);
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #71717A;
    margin-bottom: 0.5rem;
}

/* ─── Stats ─── */
.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: -0.02em;
}

.stat-block {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: #fff;
    transition: border-color 0.2s ease;
}

.stat-block:hover {
    border-color: #D4D4D8;
}

/* ─── Section Dividers ─── */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

/* ─── FAQ ─── */
.faq-toggle {
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #D4D4D8;
}

/* ─── Mobile Menu ─── */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

#mobile-menu.hidden {
    display: none;
}

/* ─── Product Cards ─── */
.product-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.25s ease;
}

.product-card:hover {
    border-color: #D4D4D8;
    box-shadow: 0 12px 40px rgba(9, 9, 11, 0.08);
    transform: translateY(-3px);
}

.product-card-accent-red {
    border-top: 2px solid var(--color-pamtech-red);
}

.product-card-accent-blue {
    border-top: 2px solid var(--color-pamtech-blue);
}

/* ─── Verification Status ─── */
.status-valid {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-used {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.status-invalid {
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.08) 0%, rgba(239, 68, 68, 0.04) 100%);
    border: 1px solid rgba(225, 29, 46, 0.2);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator-valid {
    background: #22C55E;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.status-indicator-used {
    background: #EAB308;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.5);
}

.status-indicator-invalid {
    background: #E11D2E;
    box-shadow: 0 0 12px rgba(225, 29, 46, 0.5);
}

/* ─── Data Display ─── */
.data-mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.data-grid {
    display: grid;
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.data-grid-cell {
    background: #FAFAFA;
    padding: 1rem 1.25rem;
}

/* ─── Admin ─── */
.admin-header {
    background: #09090B;
    border-bottom: 1px solid var(--color-border-dark);
}

.admin-stat-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
}

.admin-stat-card:hover {
    border-color: #D4D4D8;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #71717A;
    padding: 0.75rem 1.5rem;
    background: #FAFAFA;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.admin-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #F4F4F5;
    font-size: 0.875rem;
}

.admin-table tbody tr:hover td {
    background: #FAFAFA;
}

.admin-tab-active {
    border-bottom: 2px solid var(--color-pamtech-red) !important;
    color: var(--color-pamtech-red) !important;
}

/* ─── Modal ─── */
.modal-overlay {
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(4px);
}

.modal-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(9, 9, 11, 0.15);
}

/* ─── Footer ─── */
.footer-hardware {
    background: #09090B;
    border-top: 1px solid var(--color-border-dark);
}

/* ─── Auth Pages ─── */
.auth-container {
    background: linear-gradient(180deg, #FAFAFA 0%, #F4F4F5 100%);
    min-height: 100vh;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(9, 9, 11, 0.04);
}

/* ─── Legacy compat ─── */
.nav-bg {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
}
.nav-pattern {
    background-image: radial-gradient(circle, rgba(225, 29, 46, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.15;
}
.nav-grid {
    background-image:
        linear-gradient(rgba(9, 9, 11, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 9, 11, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.5;
}
.hero-dots {
    background-image: radial-gradient(circle, rgba(225, 29, 46, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
}
.hero-grid {
    background-image:
        linear-gradient(rgba(9, 9, 11, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 9, 11, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
}
.hero-animated-bg {
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.03) 0%, rgba(59, 130, 246, 0.03) 50%, rgba(225, 29, 46, 0.03) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}
.hero-blur-red {
    background: radial-gradient(circle, rgba(225, 29, 46, 0.12) 0%, transparent 70%);
    filter: blur(80px);
}
.hero-blur-blue {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    filter: blur(80px);
}
.section-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.section-card:hover {
    border-color: #D4D4D8;
    box-shadow: 0 8px 30px rgba(9, 9, 11, 0.06);
    transform: translateY(-2px);
}
