/* ============================================
   GLASMORPHISM - Light Theme
   ============================================
   Applies glasmorphism effect to light theme
   components. Override base styles and apply
   glass effect to cards, header, buttons, inputs.
   ============================================ */

/* ============================================
   Cards - Light Theme Glass
   ============================================ */

.card-started {
    background: transparent;
}

.card-started .profile {
    --profile-surface: rgba(255, 255, 255, 0.8);
    --profile-surface-hover: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 200, 220, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.card-started .profile:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(200, 200, 220, 0.6);
}

/* Fallback for older browsers */
@supports not (backdrop-filter: blur(1px)) {
    .card-started .profile {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

/* ============================================
   Content Cards - Light Theme Glass
   ============================================ */

.card-inner {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 200, 220, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth), visibility 1s linear, opacity 0.5s linear;
}

.card-inner:before,
.card-inner:after {
    display: none;
}

.card-inner.animated {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.card-inner:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border-color: rgba(200, 200, 220, 0.6);
}

/* Fallback */
@supports not (backdrop-filter: blur(1px)) {
    .card-inner {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

/* ============================================
   Header/Navigation - Light Theme Glass
   ============================================ */

.header .top-menu {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(200, 200, 220, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.header .top-menu ul {
    border-radius: inherit;
    overflow: hidden;
}

.header .top-menu:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(200, 200, 220, 0.6);
}

.header .top-menu ul li a {
    background: transparent !important;
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.header .top-menu ul li a:before {
    background: rgba(200, 200, 220, 0.3);
    transition: background 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.header .top-menu ul li a:hover,
.header .top-menu ul li.active a {
    background: rgba(204, 180, 109, 0.08) !important;
}

.header .top-menu ul li a:hover:before,
.header .top-menu ul li.active a:before {
    background: rgba(204, 180, 109, 0.3);
}

/* Fallback */
@supports not (backdrop-filter: blur(1px)) {
    .header .top-menu {
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* ============================================
   Mobile Header - Light Theme Glass
   ============================================ */

@media (max-width: 1240px) {
    .header .top-menu {
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(200, 200, 220, 0.4);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
}

/* ============================================
   Mobile Bottom Navigation - Light Theme
   ============================================ */

@media (max-width: 1023px) {
    .page {
        display: block;
        height: auto;
        padding-bottom: 96px;
    }

    .container {
        margin: 0 auto;
        padding: 0 !important;
        top: 16px;
    }

    .container.opened {
        margin: 0 auto;
        padding: 0 !important;
        top: 16px;
    }

    .header {
        position: fixed;
        top: auto;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        padding: 0 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 120;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    .header .top-menu {
        margin: 0;
        width: min(560px, 100%);
        max-width: 100%;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    }

    .header .top-menu:before {
        display: none;
    }

    .header .top-menu ul {
        display: flex;
        overflow: hidden;
        width: 100%;
        border-radius: inherit;
    }

    .header .top-menu ul li {
        width: 33.3333%;
        min-width: 0;
    }

    .header .top-menu ul li a {
        height: 68px;
        padding: 10px 6px;
    }

    .header .top-menu ul li a:before {
        width: 1px;
        height: 100%;
        left: 0;
        top: 0;
        bottom: auto;
    }

    .header .top-menu ul li:first-child a {
        border-radius: 18px 0 0 18px;
    }

    .header .top-menu ul li:last-child a {
        border-radius: 0 18px 18px 0;
    }

    .card-inner.contacts .card-wrap {
        padding-bottom: 100px;
    }
}

@media (max-width: 560px) {
    .container,
    .container.opened {
        top: 0;
        padding: 0 !important;
    }

    .header {
        background: transparent !important;
    }
}

/* ============================================
   Buttons & Links - Light Theme Glass
   ============================================ */

.lnk,
.button {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(200, 200, 220, 0.5);
    color: #171717;
    transition: var(--transition-fast);
}

.lnk:hover,
.button:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(200, 200, 220, 0.7);
    transform: translateY(-1px);
}

.lnk:active,
.button:active {
    transform: translateY(0);
}

/* Fallback */
@supports not (backdrop-filter: blur(1px)) {
    .lnk,
    .button {
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* ============================================
   Form Inputs - Light Theme Glass
   ============================================ */

input,
textarea {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 200, 220, 0.4) !important;
    color: #171717 !important;
    transition: var(--transition-fast);
}

input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(200, 200, 220, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(204, 180, 109, 0.1), 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    outline: none !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(23, 23, 23, 0.5);
}

/* Fallback */
@supports not (backdrop-filter: blur(1px)) {
    input,
    textarea {
        background: rgba(255, 255, 255, 0.9) !important;
    }
}

/* ============================================
   Buttons (Submit/Form Actions) - Light Glass
   ============================================ */

button,
input[type="submit"] {
    background: rgba(204, 180, 109, 0.15) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(204, 180, 109, 0.3) !important;
    color: #171717 !important;
    transition: var(--transition-fast);
}

button:hover,
input[type="submit"]:hover {
    background: rgba(204, 180, 109, 0.25) !important;
    border-color: rgba(204, 180, 109, 0.6) !important;
    box-shadow: 0 8px 24px rgba(204, 180, 109, 0.15);
    transform: translateY(-1px);
}

button:active,
input[type="submit"]:active {
    transform: translateY(0);
}

/* Fallback */
@supports not (backdrop-filter: blur(1px)) {
    button,
    input[type="submit"] {
        background: rgba(120, 204, 109, 0.3) !important;
    }
}

/* ============================================
   Title & Heading Elements
   ============================================ */

.card-started .profile .title,
.content .title,
.resume-title .name,
.skill-title .name {
    color: #171717;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .card-started .profile,
    .card-inner,
    .header .top-menu,
    .lnk,
    .button,
    input,
    textarea {
        transition: none !important;
    }
}

/* ============================================
   Hotfix - Remove Legacy Solid Blocks
   ============================================ */

.card-started .profile .slide:before,
.card-started .profile .slide:after {
    display: block;
    background: var(--profile-surface);
    border-top: 0;
    transition: all 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.card-started .profile:hover .slide:before,
.card-started .profile:hover .slide:after {
    background: var(--profile-surface-hover);
}

.card-started .profile .lnks {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.card-started .profile .lnk,
.card-started .profile .button {
    background: transparent !important;
    box-shadow: none !important;
}

.resume-title .icon,
.skill-title .icon {
    background: transparent !important;
}

.skills-list.circles .progress {
    background: rgba(255, 255, 255, 0.35);
}

.skills-list.circles .progress:after {
    background-color: rgba(255, 255, 255, 0.6);
}

@supports not (backdrop-filter: blur(1px)) {
    .card-started .profile .lnks {
        background: rgba(255, 255, 255, 0.35);
    }
}

/* ============================================
   Left Profile Card - Non-Glass Mode
   ============================================ */

.card-started .profile {
    background: #f4e7dc !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(205, 186, 170, 0.45);
}

.card-started .profile:hover {
    background: #f4e7dc !important;
}

.card-started .profile .slide:before,
.card-started .profile .slide:after {
    background: #f4e7dc !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.card-started .profile .lnks {
    background: #f0f0f0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.card-started .profile .lnk,
.card-started .profile .button {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}