@import url("fonts.css");

:root {
    /* Base */
    --bg-color: #efefef;
    --text-color: #000;
    --text-light: #ffffff;
    --text-dark: #111827;

    /* Brand Colors */
    --primary-color: #f59e0b;
    --primary-color-light: #f8ad2c;
    --primary-color-dark: #d1880b;

    --secondary-color: #10b981;
    --secondary-color-light: #3bdda7;
    --secondary-color-dark: #10a573;
    --secondary-color-darker: #0e8f61;

    /* Status Colors */
    --success-color: #00e676;
    --error-color: #dc2626;
    --cream-color: #fee2e2;
    --draft-color: #9e9e9e;
    --accent-color: #48ffb2;

    /* Grayscale */
    --light-gray: #ccc;
    --gray: #9e9e9e;
    --dark-gray: #3a3a3a;

    /* Dark Tones */
    --dark: #1e293b;
    --dark-blue: #050133;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #fff7ed 0%, rgba(255, 247, 237, 0.4) 100%);
    --gradient-secondary: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.05) 0%,
        rgba(16, 185, 129, 0.01) 100%
    );
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", "Raleway", "Segoe UI", "Helvetica Neue", system-ui, -apple-system,
        BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", Tahoma, Geneva, Verdana,
        sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--gradient-primary);
    color: var(--text-color);
    font-size: 1.6rem;
    line-height: 1.4;
}

/* Disabled scroll if the mobile menu is active */
body.menu-open {
    overflow: hidden;
}

/* Utility */
.hidden {
    display: none !important;
}

.flex {
    display: flex !important;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.pointer {
    cursor: pointer;
}

.no-margin-bottom {
    margin-bottom: 0 !important;
}

.unselectable {
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
}

/* Media */
img {
    max-width: 100%;
    height: auto;
}

/* Typography */
a {
    color: inherit;
    text-decoration: none;
}

a.active {
    color: var(--primary-color) !important;
}

.action-btn {
    color: white;
    transition: opacity 0.2s;
    background: var(--secondary-color);
    padding: 1.2rem 2.5rem;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: var(--secondary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    background-color: var(--secondary-color-darker);
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#logoutBtn,
#logoutBtnMobile {
    color: var(--error-color);
}

button,
input {
    font-family: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Global Loading Overlay */
body.loading::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

body.loading::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    z-index: 2001;
}

body.loading::after {
    background: radial-gradient(circle at 30% 30%, #111827 5px, transparent 6px),
        radial-gradient(circle at 70% 30%, #f59e0b 5px, transparent 6px),
        radial-gradient(circle at 30% 70%, #10b981 5px, transparent 6px),
        radial-gradient(circle at 70% 70%, #cccccc 5px, transparent 6px);
    animation: quantumOrbit 4s ease-in-out infinite;
}

@keyframes quantumOrbit {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
        background-position: 30% 30%, 70% 30%, 30% 70%, 70% 70%;
    }

    25% {
        transform: rotate(90deg) scale(1.1);
        background-position: 40% 20%, 80% 40%, 20% 60%, 60% 80%;
    }

    50% {
        transform: rotate(180deg) scale(0.9);
        background-position: 20% 40%, 60% 20%, 80% 60%, 40% 80%;
    }

    75% {
        transform: rotate(270deg) scale(1.05);
        background-position: 40% 60%, 20% 80%, 60% 40%, 80% 20%;
    }
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.orange {
    color: var(--primary-color);
}

.green {
    color: var(--secondary-color);
}

/* Promo Banner */
.promo-banner {
    /* showing banner only when ready */
    /* display: none; */
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.94) 0%, #0c4f6b 100%);
    color: #ffffff;
    padding: 1rem 1.2rem;
    position: relative;
    z-index: 1000;
    box-shadow: 0 6px 16px rgba(12, 79, 107, 0.18);
}

.promo-banner__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.promo-banner__text-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
}

.promo-banner__label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.6rem 0.8rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
}

.promo-banner__text {
    font-size: 1.6rem;
    font-weight: 500;
}

.promo-banner__price-new {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.promo-banner__price-old {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    padding: 0 0.25rem;
}

.promo-banner__price-old::after {
    content: "";
    position: absolute;
    inset: 50% -0.2rem auto -0.2rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) rotate(-6deg);
}

.promo-banner__cta {
    background: #ffffff;
    color: var(--secondary-color);
    max-width: 172px;
    border-radius: 999px;
    padding: 1rem 1.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.promo-banner__close-btn {
    position: absolute;
    height: 38px;
    width: 38px;
    top: 10px;
    right: 10px;
    background: #ffffff00;
    color: var(--secondary-color);
    border-radius: 999px;
    padding: 1rem 1.4rem;
    font-size: 28px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.promo-banner__close-btn:hover,
.promo-banner__close-btn:focus-visible,
.promo-banner__cta:hover,
.promo-banner__cta:focus-visible {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.promo-banner__cta:focus-visible,
.promo-banner__close-btn:focus-visible {
    outline: 2px solid rgba(17, 24, 39, 0.2);
    outline-offset: 2px;
}

.promo-banner__cta:active,
.promo-banner__close-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .promo-banner__close-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        height: 30px;
        width: 30px;
        padding: 0;
        border-radius: 50%;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(6px);
        /* Ensure it floats above and doesn't participate in layout */
        pointer-events: auto;
        z-index: 5;
    }

    .promo-banner {
        padding: 16px;
    }

    .promo-banner__container {
        gap: 0.9rem;
    }

    .promo-banner__cta {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        padding: 14px 32px;
    }

    .promo-banner__text-group {
        font-size: 1.4rem;
        gap: 8px;
    }
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* logo */
.logo {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #111827;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo span {
    color: #f59e0b;
}

.logo .logo-tld {
    color: var(--light-gray);
}

.logo img {
    height: 42px;
    margin-right: 8px;
}

/* Navigation */
.main-nav {
    display: flex;
    transition: all 0.3s ease-in-out;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: auto;
    margin: auto;
}

.nav-links a {
    color: var(--text-dark);
    font-size: 1.6rem;
    line-height: 3rem;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.login-btn,
.user-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 2.5rem;
    color: var(--primary-color) !important;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    transition: all 0.2s ease;
}

.login-btn:hover,
.user-btn:hover {
    background-color: var(--primary-color-light);
    color: #fff !important;
    border-color: var(--primary-color-light);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color-light);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span {
    background-color: var(--primary-color);
}

.menu-toggle.active span:nth-child(1) {
    transform: translate(5px, 5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translate(5px, -11px) rotate(-45deg);
}

/* Dropdown */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 200px;
    z-index: 999;
}

.user-dropdown.visible {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

/* Responsive visibility helpers */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .logo img {
        height: 30px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background: linear-gradient(150deg, #fff7ed 30%, rgba(255, 247, 237, 0.801) 100% 100%);
        transform: translateX(-100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        z-index: 1000;
        transition: transform 0.2s ease-in-out;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-links li a {
        font-size: 2rem;
    }

    .user-btn {
        display: none;
    }

    .guest-only {
        margin-top: 10px;
    }

    .user-dropdown {
        position: static;
        display: block;
        background-color: transparent;
        box-shadow: none;
    }

    .user-dropdown a {
        color: var(--text-light);
    }

    .user-dropdown a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }
}

/* furnizor Section */
.cta-section {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 48px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    color: var(--text-dark);
    margin-bottom: 2px;
    font-size: 3.6rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
    font-size: 1.4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
    color: white;
}

.footer-content p a {
    color: white;
    transition: color 0.2s ease;
}

.footer-content p a:hover {
    color: var(--secondary-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

@media screen and (max-width: 1124px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: -120px;
    left: 0;
    width: 100%;
    background: var(--dark);
    color: var(--text-light);
    padding: 16px;
    display: flex;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: bottom 0.3s ease;
}

/* Base banner styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark);
    color: var(--text-light);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}

/* Slide in */
#cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Slide down (close) */
#cookie-banner.slide-down {
    transform: translateY(100%);
    opacity: 0;
}

/* Content layout */
.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

/* Text */
.cookie-content p {
    color: white;
    margin: 0;
    font-size: 14px;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Buttons */
.cookie-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-actions .btn-primary,
.cookie-actions .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-actions .btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.cookie-actions .btn-primary:hover {
    background: var(--primary-color-light);
}

.cookie-actions .btn-secondary {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
}

.cookie-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Desktop layout */
@media (min-width: 600px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
}
