html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
}

nav.navbar {
    flex-shrink: 0;
}

.language-picker .dropdown-toggle {
    color: rgba(255, 255, 255, 0.9);
}

.language-picker .lang-flag {
    font-size: 1.3rem;
    line-height: 1;
}

.language-dropdown .dropdown-item .lang-flag {
    font-size: 1.15rem;
}

/* SVG flag icons styling - circular flags */
.lang-flag-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: inline-block;
    vertical-align: middle;
}

.language-dropdown .dropdown-item .lang-flag-icon {
    width: 1.3rem;
    height: 1.3rem;
}

.language-dropdown .dropdown-item.active {
    font-weight: 600;
    background-color: rgba(var(--bs-dark-rgb), 0.32);
}
.language-dropdown .dropdown-item:hover {
    background-color: rgba(var(--bs-dark-rgb), 0.12);
}

main {
    flex: 1 0 auto;
}
h1, h2 {
    margin-bottom: 1.5rem;
}
hr {
    margin: 1rem auto 2rem auto;
    width: 95%;

}

.auth-form-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.05);
}

.auth-form-card h1 {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-form-card .btn {
    width: 100%;
}

.membership-purchase-card {
    max-width: 520px;
}

@media (max-width: 576px) {
    .auth-form-card {
        padding: 1.5rem;
    }
}

a.navbar-brand .logo{
    color: #fff ;
    height: 55px;
}
h1 .logo{
    height: 12rem;
    max-width: 95%;
}

.feature-box {
    transition: transform 0.2s ease;
}
.feature-box:hover {
    transform: scale(1.1);
}

main.home-main {
    width: 100%;
    padding: 0;
    margin: 0;
}

main.home-main .alert {
    max-width: 1200px;
    margin: 1rem auto 0 auto;
}

.home-section {
    position: relative;
    overflow: hidden;
}

.home-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-hero::before,
.home-cta::before,
.home-reviews::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    z-index: -1;
    background: rgba(var(--bs-success-rgb), 0.12);
}

.home-reviews::before {
    background: rgba(var(--bs-info-rgb), 0.08);
}
.hero-title {
    line-height: 1.28 !important;
    margin-bottom: 1.2rem !important;
    font-size: 1.7rem !important; /* mobilní velikost lepší než gigantické display-6 */
}

.hero-lead {
    margin-bottom: 1.8rem !important;
    font-size: 1.05rem !important;
    line-height: 1.45;
}

.hero-cta-wrapper {
    gap: 1rem !important; /* mezi CTA tlačítky */
    margin-bottom: 2rem !important;
}

.hero-cta-main small {
    margin-top: 0.45rem !important;
    font-size: 0.78rem !important;
}

/* DESKTOP / larger screens */
@media (min-width: 576px) {
    .hero-title {
        font-size: 2.4rem !important;
        margin-top: 3rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.30;
    }

    .hero-lead {
        margin-bottom: 2.5rem !important;
        font-size: 1.2rem !important;
    }

    .hero-cta-wrapper {
        gap: 1.5rem !important;
        margin-bottom: 3rem !important;
    }

    .hero-cta-main small {
        font-size: 0.82rem !important;
    }
}

.home-cta {
    color: var(--bs-body-color);
}

.home-cta h2,
.home-cta p {
    color: inherit;
}

.home-benefits {
    max-width: 1200px;
}

footer {
    flex-shrink: 0;
    background-color: rgba(var(--bs-dark-rgb), 1);
}
footer, footer .text-muted {
    color: rgba(255,255,255, 0.5) !important;
}
footer a:hover {
    color: rgba(255,255,255, 0.75) !important;
    text-decoration: none;
}
.footer-payment-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.footer-payment-logos__items {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-payment-banner {
    max-width: 420px;
    height: auto;
    display: block;
}

.social-login .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 600;
    border-width: 1px;
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

.social-login .btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.btn-google {
    background-color: #fff;
    color: #3c4043;
    border-color: #dadce0;
}

.btn-google:hover,
.btn-google:focus {
    color: #1a1a1a;
    background-color: #f8f9fa;
    border-color: #c6c8cc;
}

.btn-facebook {
    background-color: #1877f2;
    border-color: #1877f2;
}

.btn-facebook:hover,
.btn-facebook:focus {
    background-color: #0f63d3;
    border-color: #0f63d3;
}

.btn-apple {
    background-color: #000;
    border-color: #000;
}

.btn-apple:hover,
.btn-apple:focus {
    background-color: #1c1c1c;
    border-color: #1c1c1c;
}

.btn-facebook,
.btn-apple,
.btn-facebook:hover,
.btn-facebook:focus,
.btn-apple:hover,
.btn-apple:focus {
    color: #fff;
}
.flash-container {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, calc(100% - 2rem));
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.flash-container .alert {
    margin: 0;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

/* AdBlock Detection Overlay */
#adblock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#adblock-overlay.active {
    display: flex;
}

.adblock-modal {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
    animation: adblockFadeIn 0.3s ease-out;
}

@keyframes adblockFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.adblock-modal__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.adblock-modal__title i {
    font-size: 1.75rem;
}

.adblock-modal__message,
.adblock-modal__premium p,
.review-text {
    color: #333;
}

.adblock-modal__message {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.adblock-modal__premium {
    padding: 1rem;
    background: rgba(var(--bs-success-rgb), 0.1);
    border-left: 4px solid var(--bs-success);
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
}

.adblock-modal__premium p {
    margin: 0;
}

.adblock-modal__premium a {
    color: var(--bs-success);
    font-weight: 600;
    text-decoration: none;
}

.adblock-modal__premium a:hover {
    text-decoration: underline;
}

.adblock-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Detekční bait prvek pro AdBlock */
.adblock-bait {
    width: 1px;
    height: 1px;
    position: absolute;
    left: -9999px;
    top: -9999px;
    pointer-events: none;
}

/* Password Toggle Visibility */
.password-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.15s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #495057;
}

.password-toggle-btn:focus {
    outline: none;
    color: #212529;
}

.password-toggle-btn i {
    font-size: 1.1rem;
    pointer-events: none;
}

/* Reviews Section */
.review-stars-header {
    color: #f5b301;
    font-size: 1.5rem;
    letter-spacing: 0.25rem;
}

.review-box {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.review-box:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

.review-author {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* Mobile first - larger padding on desktop */
@media (min-width: 768px) {
    .review-stars-header {
        font-size: 2rem;
    }

    .review-box {
        padding: 2rem;
    }

    .review-text {
        font-size: 1.05rem;
    }
}

/* Screenshots Section */
.home-screenshots::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    z-index: -1;
    background: rgba(var(--bs-success-rgb), 0.05);
}

.screenshot-box {
    position: relative;
    display: flex;
    flex-direction: column;
}

.screenshot-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: #fff;
}

.screenshot-link:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.25);
}

.screenshot-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

@media (max-width: 576px) {
    .screenshot-img {
        height: 300px;
    }
}

.screenshot-link:hover .screenshot-img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 3rem;
}

.screenshot-link:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Screenshot Gallery Modal */
.screenshot-gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    max-height: 85vh;
}

.screenshot-display {
    position: relative;
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot-fullsize {
    max-width: 100%;
    max-height: 75vh;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

.screenshot-fullsize-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 600px;
}

.screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: #333;
}

.screenshot-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.screenshot-nav-prev {
    left: 1rem;
}

.screenshot-nav-next {
    right: 1rem;
}

@media (max-width: 768px) {
    .screenshot-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .screenshot-nav-prev {
        left: 0.5rem;
    }

    .screenshot-nav-next {
        right: 0.5rem;
    }

    .screenshot-fullsize {
        max-height: 65vh;
    }

    .screenshot-fullsize-caption {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}
