/* --- Rationale font (cégnév) --- */
@font-face {
    font-family: 'Rationale';
    src: url('../fonts/rationale.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- Lobol színváltozók (Android projektből) --- */
:root {
    --lobol-primary: #2b443c;
    --lobol-primary-container: #425b53;
    --lobol-on-primary: #ffffff;
    --lobol-on-primary-container: #b6d2c7;
    --lobol-secondary: #855400;
    --lobol-secondary-container: #ffa500;
    --lobol-on-secondary: #ffffff;
    --lobol-surface: #ffffff;
    --lobol-on-surface: #1b1c1b;
    --lobol-outline: #727975;
    --lobol-outline-variant: #c2c8c4;
    --lobol-error: #ba1a1a;
}

/* --- Alap --- */
html {
    font-size: 14px;
    height: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--lobol-surface);
    color: var(--lobol-on-surface);
}

.content-area {
    flex: 1;
    overflow-y: auto;
    scrollbar-gutter: stable;
    background-color: var(--lobol-surface);
}

/* --- Igazítás: container padding --- */
header .container,
.content-area .container,
.footer .container {
    padding-left: calc(var(--bs-gutter-x) * .5 + 0.9rem);
    padding-right: calc(var(--bs-gutter-x) * .5 + 0.9rem);
}

/* --- Scrollbar kompenzáció (header/footer) --- */
header > nav > .container,
.footer > .container {
    padding-right: calc(var(--bs-gutter-x) * .5 + 0.9rem + var(--scrollbar-width, 0px));
}

/* --- Navbar --- */
.navbar-lobol {
    background-color: var(--lobol-surface) !important;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    flex-shrink: 0;
    border-bottom: 1px solid #e8ebe9;
}

.navbar-lobol .navbar-brand {
    font-family: 'Rationale', sans-serif;
    font-size: 1.9rem;
    letter-spacing: 1px;
    color: var(--lobol-primary) !important;
}

.navbar-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-color: var(--lobol-secondary-container);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0C90 0 100 10 100 50 100 90 90 100 50 100 10 100 0 90 0 50 0 10 10 0 50 0Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0C90 0 100 10 100 50 100 90 90 100 50 100 10 100 0 90 0 50 0 10 10 0 50 0Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.navbar-icon img {
    position: relative;
    width: 150%;
    height: 150%;
    object-fit: contain;
    left: -2%;
}

.navbar-lobol .nav-link {
    color: var(--lobol-on-surface) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem !important;
}

.navbar-lobol .nav-link:hover {
    color: var(--lobol-primary) !important;
}

/* --- Hero Section --- */
.hero-section {
    padding: 3rem 0 2rem;
}

.hero-section .container {
    padding-left: calc(var(--bs-gutter-x) * .5 + 0.9rem);
    padding-right: calc(var(--bs-gutter-x) * .5 + 0.9rem);
}

.hero-text-col {
    padding-right: 2rem;
    flex: 0 0 43%;
    max-width: 43%;
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--lobol-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--lobol-outline);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    font-size: 1rem;
    color: var(--lobol-on-surface);
}

.hero-features li svg {
    color: var(--lobol-primary);
    flex-shrink: 0;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.store-badge-gplay {
    height: 65px;
    width: auto;
    display: block;
}

.store-badge-appstore {
    height: 65px;
    width: auto;
    display: block;
    transform: scaleX(1.12);
    transform-origin: left;
}

/* --- Hero Carousel (jobb oldal) — phone.png overlay --- */
.hero-carousel-col {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    flex: 0 0 57%;
    max-width: 57%;
}

.center-carousel {
    position: relative;
    width: 100%;
    padding: 0 0 1rem 0;
    margin-top: -2rem;
}

.center-carousel-viewport {
    overflow: hidden;
    clip-path: inset(0);
    cursor: grab;
    user-select: none;
    /* width set by JS updateCarouselSize() */
    margin: 0 auto;
}

.center-carousel-track {
    position: relative;
    width: 100%;
    /* height set by JS updateCarouselSize() */
}

/* Each phone unit */
.phone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    /* transition set by JS for staggered animation */
    cursor: pointer;
    visibility: hidden;
    will-change: transform, filter, opacity;
}

.center-carousel.initialized .phone {
    visibility: visible;
}

.phone img {
    /* width set by JS updateCarouselSize() */
    display: block;
}


.center-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--lobol-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 200;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.center-carousel-btn:hover {
    background: var(--lobol-primary-container);
}

.center-carousel-prev { left: 0; }
.center-carousel-next { right: 0; }

.center-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.center-carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: var(--lobol-outline-variant);
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.center-carousel-indicators button.active {
    background-color: var(--lobol-primary);
}

/* --- Feature Bar --- */
.feature-bar {
    padding: 2rem 0;
}

.feature-bar .container {
    padding-left: calc(var(--bs-gutter-x) * .5 + 0.9rem);
    padding-right: calc(var(--bs-gutter-x) * .5 + 0.9rem);
}

.feature-bar-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    background-color: #f5f7f6;
    border: 1px solid #e8ebe9;
    border-radius: 16px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.feature-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--lobol-primary);
    flex: 1;
    padding: 1rem 0.85rem;
    min-width: 0;
}

.feature-bar-item + .feature-bar-item {
    border-left: 1px solid #e0e3e1;
}

.feature-bar-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.feature-bar-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--lobol-on-surface);
    line-height: 1.25;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* --- Gombok --- */
.btn-lobol {
    background-color: var(--lobol-primary);
    border-color: var(--lobol-primary);
    color: var(--lobol-on-primary);
}

.btn-lobol:hover {
    background-color: var(--lobol-primary-container);
    border-color: var(--lobol-primary-container);
    color: var(--lobol-on-primary);
}

.btn-lobol-secondary {
    background-color: var(--lobol-secondary-container);
    border-color: var(--lobol-secondary);
    color: var(--lobol-on-secondary);
}

.btn-lobol-secondary:hover {
    background-color: var(--lobol-secondary);
    border-color: var(--lobol-secondary);
    color: var(--lobol-on-secondary);
}

/* --- Kártyák --- */
.card {
    border: 1px solid var(--lobol-outline-variant);
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(43, 68, 60, 0.2);
}

.card-lobol-primary {
    background-color: var(--lobol-primary);
    color: var(--lobol-on-primary);
    border: none;
}

.card-lobol-container {
    background-color: var(--lobol-primary-container);
    color: var(--lobol-on-primary-container);
    border: none;
}

/* --- Footer --- */
.footer {
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 38px;
    background-color: #f5f7f6;
    color: var(--lobol-outline);
    border-top: 1px solid #e8ebe9;
    font-size: 0.85rem;
}

.footer a {
    color: var(--lobol-outline);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--lobol-primary);
}

.footer-separator {
    opacity: 1;
    margin: 0 0.15em;
}

.footer-email-icon {
    opacity: 0.55;
    vertical-align: text-bottom;
    position: relative;
    top: 0.08em;
    margin-right: -0.3em;
}

.footer-email {
    user-select: all;
}

.footer-copy-btn {
    background: none;
    border: none;
    padding: 0.15em;
    margin-left: -0.3em;
    cursor: pointer;
    color: var(--lobol-outline);
    opacity: 0.55;
    transition: opacity 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    vertical-align: text-bottom;
}

.footer-copy-btn:hover {
    opacity: 1;
    color: var(--lobol-primary);
}

.footer-copy-btn .footer-check-icon {
    color: #28a745;
}

@keyframes copy-pop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Bejelentkezés gomb --- */
.btn-login {
    color: var(--lobol-primary);
    border: 2px solid var(--lobol-primary);
    border-radius: 20px;
    padding: 0.3rem 1.2rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.btn-login:hover,
.btn-login:focus,
.btn-login:active {
    color: var(--lobol-on-primary);
    border-color: var(--lobol-primary);
    background-color: var(--lobol-primary);
}

.btn-login-active {
    background-color: var(--lobol-secondary-container);
    border-color: var(--lobol-secondary-container);
    color: var(--lobol-on-secondary);
}

.btn-login-active:hover,
.btn-login-active:focus,
.btn-login-active:active {
    background-color: var(--lobol-secondary-container);
    border-color: var(--lobol-secondary-container);
    color: var(--lobol-on-secondary);
}

.dropdown-toggle-no-caret::after {
    display: none;
}

.btn-login + .dropdown-menu {
    margin-top: 0.7rem !important;
}

/* --- Apple bejelentkezés gomb --- */
.btn-apple {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.btn-apple:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
}

/* --- Focus --- */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--lobol-primary-container);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 2rem 0 1rem;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-text-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 5rem;
    }

    .hero-carousel-col {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 280px;
    }
}

@media (max-width: 767.98px) {
    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-bar-row {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .feature-bar-item {
        flex: 1 1 45%;
        padding: 0.75rem 0.75rem;
    }

    .feature-bar-item:nth-child(2) {
        border-left: 1px solid #e0e3e1;
    }

    .feature-bar-item:nth-child(3) {
        border-left: none;
        border-top: 1px solid #e0e3e1;
    }

    .feature-bar-item:nth-child(4) {
        border-top: 1px solid #e0e3e1;
    }

    .feature-bar-item span {
        font-size: 0.75rem;
    }

}
