@import 'variables.css';

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--clr-bg-body);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navigace */
header {
    background: var(--clr-bg-nav);
    border-bottom: 2px solid var(--clr-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--clr-text-main);
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.logo span {
    color: var(--clr-primary);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    position: relative;
    font-family: var(--font-heading);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-text-main);
}

/* Podtržení při najetí */
.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Pravá část menu (User, Lang, Theme) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: var(--clr-text-main);
}

.btn-login {
    background-color: var(--clr-primary);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-size: 14px;
    font-family: var(--font-heading);
}

.btn-login:hover {
    background-color: var(--clr-primary-light);
    box-shadow: var(--shadow-red-glow);
}

/* --- HEADER COMPONENTS --- */

/* Navigation Links (Secondary/Actions) */
.nav-link {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.nav-link:hover {
    color: var(--clr-text-main);
}

.nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-switch a {
    opacity: 0.6;
    transition: 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
    opacity: 1;
    color: var(--clr-primary);
}

.lang-switch .divider {
    opacity: 0.3;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    padding-bottom: 5px;
    /* Increase hover area */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--clr-bg-card);
    min-width: 180px;
    box-shadow: var(--shadow-card);
    z-index: 1000;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: 5px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: dropFade 0.2s ease;
}

.dropdown-content a {
    color: var(--clr-text-main);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: 0.2s;
    text-transform: none;
    /* Keep dropdown items normal case if needed, or uppercase */
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-primary);
}

@keyframes dropFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Footer */
footer {
    background: var(--clr-bg-card);
    border-top: 1px solid var(--clr-border);
    padding: 40px 0;
    margin-top: auto;
    /* Aby byl vždy dole */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.socials a {
    font-size: 20px;
    margin-left: 15px;
    color: var(--clr-text-muted);
}

.socials a:hover {
    color: var(--clr-primary);
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg');
    /* Tady pak dej realny obrazek */
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content h1 span {
    color: var(--clr-primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 30px;
}

/* IP Copy Box */
.ip-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--clr-primary);
    padding: 15px 30px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    font-family: monospace;
    font-size: 1.5rem;
}

.ip-box:hover {
    background: var(--clr-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-red-glow);
}

.ip-icon {
    margin-left: 15px;
    opacity: 0.7;
}

/* --- FEATURES --- */
.feature-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--clr-bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    flex: 1;
    min-width: 250px;
    border-top: 3px solid var(--clr-primary);
    box-shadow: var(--shadow-card);
}

.feature-card i {
    font-size: 3rem;
    color: var(--clr-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* --- NEWS --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--clr-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: var(--shadow-card);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    background-color: #333;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    display: block;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--clr-text-main);
    font-family: var(--font-heading);
}

.news-content p {
    color: var(--clr-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-read {
    color: var(--clr-primary);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-read:hover {
    text-decoration: underline;
}

/* --- TOAST NOTIFICATION --- */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--clr-primary);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 16px;
    position: fixed;
    z-index: 1001;
    right: 30px;
    bottom: 30px;
    font-size: 17px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Styl pro karty nastavení */
.settings-card {
    background: var(--clr-bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    margin-bottom: 25px;
    box-shadow: var(--shadow-card);
}

/* Moderní inputy */
.settings-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--clr-bg-body);
    border: 1px solid var(--clr-border);
    color: #fff;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.settings-input:focus {
    border-color: var(--clr-primary);
    outline: none;
    box-shadow: 0 0 8px rgba(255, 31, 31, 0.4);
}

/* Tlačítka */
.btn-settings {
    background: var(--clr-primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-settings:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.btn-secondary-settings {
    background: #222;
    border: 1px solid #444;
}

.btn-secondary-settings:hover {
    background: #333;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--clr-bg-card);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-card);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: var(--clr-bg-nav);
    padding: 20px;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--clr-text-main);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-text-muted);
    cursor: pointer;
}

.btn-close:hover {
    color: var(--clr-primary);
}

.modal-body {
    padding: 30px;
}

.review-stats-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-box {
    flex: 1;
    background: var(--clr-bg-body);
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--clr-border);
}

.stat-val {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* Rating Stars */
.rating-select {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-option {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    background: var(--clr-bg-body);
}

.rating-option:hover,
.rating-option.selected {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

/* --- ADMIN PANEL --- */
.admin-container {
    display: flex;
    min-height: calc(100vh - 80px);
    /* Minus header height */
}

.admin-sidebar {
    width: 250px;
    background: var(--clr-bg-card);
    border-right: 1px solid var(--clr-border);
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar li {
    margin-bottom: 5px;
}

.admin-sidebar a {
    display: block;
    padding: 12px 25px;
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--clr-bg-body);
    color: var(--clr-primary);
    border-left-color: var(--clr-primary);
}

.admin-sidebar i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

.admin-content {
    flex: 1;
    padding: 40px;
    overflow-x: hidden;
}

.stat-card {
    background: var(--clr-bg-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 2rem;
}

.stat-info p {
    margin: 0;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}