
/* ============================================
   RamiBazar – index.css (upraveno)
   Popis: Styly pro domovskou stránku (index.php)
   Autor: Rami + ChatGPT
   ============================================ */

/* === Hero sekce (uvítací) === */
.hero {
    background: linear-gradient(to bottom, #2c2f36, #1e1f23);
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
}

/* === Vyhledávací banner === */
.search-banner {
    background: #2c2f36;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.15);
    margin: 2rem auto 1.5rem auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
    max-width: 800px;
}

.search-banner input[type="text"] {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    width: 250px;
    max-width: 100%;
    background-color: #1e1f23;
    color: white;
}

.search-banner button {
    padding: 0.5rem 1.2rem;
    border: none;
    background-color: #00aaff;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-banner button:hover {
    background-color: #0077cc;
}

/* === Přihlášení – CTA === */
.call-to-action {
    background-color: #2a2d34;
    color: #fff;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 170, 255, 0.15);
}

.call-to-action p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.4);
}

.cta-button {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #2b2d33;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 170, 255, 0.15);
}

.cta-button:hover {
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 0, 157, 0.35);
}

/* === OBECNÉ STYLY === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
}

main {
    padding: 20px;
}

.form-hint {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #999;
}

/* === HLAVNÍ SEKCE CATEGORIES === */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 22vw, 250px), 1fr));
    gap: 2rem;
    padding: 2rem 4rem;
    justify-content: center;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.feature-box {
    flex: 1 1 clamp(140px, 22vw, 250px);
    background: #303030;
    border: 1px solid #4a4a4a;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.feature-box img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
    object-fit: contain;
    border-radius: 12px;
}

.feature-box h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0.2rem 0;
}

.feature-box p {
    font-size: 0.95rem;
    color: #cccccc;
    margin-top: 0.3rem;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features {
        justify-content: center;
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .feature-box {
    flex: 1 1 clamp(140px, 22vw, 250px);
        max-width: 200px;
        padding: 0.8rem;
    }

    .feature-box img {
        width: 48px;
        height: 48px;
    }

    .feature-box h3 {
        font-size: 1rem;
    }

    .feature-box p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .features {
        justify-content: center;
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .feature-box {
    flex: 1 1 clamp(140px, 22vw, 250px);
        max-width: 100%;
        padding: 0.6rem;
    }

    .feature-box img {
        width: 40px;
        height: 40px;
    }

    .feature-box h3 {
        font-size: 0.9rem;
    }

    .feature-box p {
        font-size: 0.75rem;
    }

    .search-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .search-banner input[type="text"],
    .search-banner button {
        width: 100%;
    }
}

/* === LOGIN POPUP === */
#login-popup.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-box {
    background-color: #2a2d34;
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.4);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.popup-btn {
    background-color: #00aaff;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.popup-btn:hover {
    background-color: #0077cc;
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
