/* Tech For You site CSS */
/* Shared styles used across PHP templates. */
/* Keep new styles centralized here (avoid inline CSS in templates). */

/* ===== VARIABLES ===== */
:root {
    --bg-1: #f5f6f7;
    --bg-2: #ffffff;
    --bg-3: #eef1f4;
    --ink: #0b0f14;
    --muted: #374151;
    --line: rgba(15, 23, 42, 0.2);
    --accent: #0a66ff;
    --accent-light: rgba(10, 102, 255, 0.1);
    --accent-soft: rgba(10, 102, 255, 0.12);
    --accent-gradient: linear-gradient(135deg, #0a66ff 0%, #38bdf8 100%);
}

/* ===== BASE STYLES ===== */
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(1200px 800px at 10% -20%, rgba(10, 102, 255, 0.18), transparent 55%),
        radial-gradient(900px 700px at 95% -10%, rgba(0, 0, 0, 0.08), transparent 60%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
    overflow-x: hidden;
}

input,
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(10, 102, 255, 0.1) !important;
    outline: none !important;
}

/* ===== LAYOUT ===== */
.shell {
    position: relative;
    z-index: 10;
}

/* ===== BACKGROUND ELEMENTS ===== */
.mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.16;
    z-index: 1;
    transition: background-position 0.3s ease;
}

.blob {
    position: fixed;
    border-radius: 9999px;
    filter: blur(36px);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.3s ease;
}

#blob1 {
    width: 420px;
    height: 420px;
    background: rgba(10, 102, 255, 0.18);
    top: 10%;
    left: -120px;
}

#blob2 {
    width: 360px;
    height: 360px;
    background: rgba(56, 189, 248, 0.16);
    bottom: 5%;
    right: -120px;
}

#blob3 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.12);
    top: 40%;
    left: 50%;
}

/* ===== UI COMPONENTS ===== */
.glass,
.glass-card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.7));
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass:hover,
.glass-card:hover {
    box-shadow: 0 30px 80px rgba(10, 102, 255, 0.15);
    border-color: rgba(10, 102, 255, 0.3);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pill {
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 14px 30px rgba(10, 102, 255, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-primary::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 ease;
    z-index: -1;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(10, 102, 255, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: #0b0f14;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: white;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ===== FORMS ===== */
.form-input {
    transition: all 0.3s ease;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 102, 255, 0.1);
    outline: none;
    background: white;
}

.form-input:hover {
    border-color: rgba(10, 102, 255, 0.3);
}

.otp-input {
    letter-spacing: 0.5em;
    font-size: 1.2rem;
    text-align: center;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.5rem;
}

/* ===== ALERTS ===== */
.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
}

/* ===== CARDS & FEATURES ===== */
.feature-card,
.dashboard-card {
    transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.dashboard-card:hover {
    transform: translateY(-4px);
}

.feature-list-item {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.feature-list-item:hover {
    border-color: var(--accent);
    background: white;
    transform: translateX(5px);
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: white;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 24px;
    transition: all 0.3s ease;
}

.feature-icon-large {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 28px;
    transition: all 0.3s ease;
}

.feature-icon-small,
.section-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon,
.feature-card:hover .feature-icon-large,
.feature-card:hover .feature-icon-small,
.dashboard-card:hover .feature-icon-small,
.glass-card:hover .section-icon {
    background: var(--accent-gradient);
    color: white;
    transform: rotate(10deg);
}

.dashboard-card:hover .feature-icon-small {
    transform: rotate(5deg);
}

/* ===== HEADINGS & TEXT ===== */
.heading-underline {
    position: relative;
    display: inline-block;
}

.heading-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    width: 0%;
    background: var(--accent-gradient);
    transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.heading-underline.visible::after {
    width: 100%;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== NAVIGATION ===== */
.nav-open #nav-actions {
    display: flex;
}

.back-link {
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-3px);
}

/* ===== PROGRESS & STATUS ===== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.1s ease;
}

.status-badge {
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.password-strength {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.strength-weak {
    background: #ef4444;
}

.strength-medium {
    background: #f59e0b;
}

.strength-strong {
    background: #10b981;
}

/* ===== MODALS & TRANSITIONS ===== */
.modal-content {
    animation: modalSlideIn 0.3s ease;
}

.modal-transition {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

[data-toast] {
    animation: slideInRight 0.3s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== IMAGES ===== */
.hero-image {
    mask-image: linear-gradient(90deg, transparent, black 30%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 30%, black 70%, transparent);
}

/* ===== ANIMATIONS ===== */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

    .glass,
    .glass-card {
        backdrop-filter: blur(10px);
    }

    .counter-number {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .glass-card {
        backdrop-filter: blur(10px);
    }

    .feature-icon-large {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}