/* ============================================
   Vhodný Darca - Hlavný štýl
   Primárna: #8b0000 | Sekundárna: #25283a
   Fonty: Open Sans, Yeseva One
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&family=Yeseva+One&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    color: #212529;
    background: #fff;
    line-height: 1.7;
    font-size: 15px;
}
a { color: #8b0000; text-decoration: none; transition: color 0.3s; }
a:hover { color: #6d0000; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Yeseva One', serif; color: #25283a; line-height: 1.3; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; margin-bottom: 15px; position: relative; }
.section-title p { color: #666; max-width: 700px; margin: 0 auto; }
.theme-color { color: #8b0000; }
.bg-light { background: #f8f9fa; }
.bg-dark { background: #25283a; color: #fff; }
.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary { background: #8b0000; color: #fff; }
.btn-primary:hover { background: #6d0000; color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(139,0,0,0.3); }
.btn-outline { border: 2px solid #8b0000; color: #8b0000; background: transparent; }
.btn-outline:hover { background: #8b0000; color: #fff; }
.btn-white { background: #fff; color: #8b0000; }
.btn-white:hover { background: #f0f0f0; color: #6d0000; }
.btn-sm { padding: 8px 20px; font-size: 12px; }
.btn-lg { padding: 18px 45px; font-size: 16px; }

/* ===== TOP BAR ===== */
.top-bar {
    background: #25283a;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: #ddd; }
.top-bar a:hover { color: #fff; }
.top-bar-social a { margin-left: 12px; font-size: 15px; }

/* ===== HEADER / NAVBAR ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}
.navbar-brand img { height: 60px; }
.navbar-brand { display: flex; align-items: center; }
.navbar-brand span {
    font-family: 'Yeseva One', serif;
    font-size: 22px;
    color: #8b0000;
    margin-left: 10px;
}
.nav-menu { display: flex; align-items: center; gap: 5px; }
.nav-menu a {
    padding: 10px 16px;
    color: #25283a;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}
.nav-menu a:hover, .nav-menu a.active { color: #8b0000; }
.nav-menu .btn { color: #fff; margin-left: 10px; }
.nav-menu .btn:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: #8b0000; }

/* ===== HERO SLIDER ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: #25283a;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(37,40,58,0.7);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
}
.hero-content h1 {
    font-size: 52px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}
.hero-slider { position: relative; overflow: hidden; }
.hero-slide { display: none; animation: fadeIn 0.8s; }
.hero-slide.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hero-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.hero-dot.active { background: #fff; }

/* ===== O PROJEKTE SEKCIA ===== */
.about-section { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image img { border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.about-content h3 { color: #8b0000; font-size: 16px; margin-bottom: 8px; letter-spacing: 2px; text-transform: uppercase; }
.about-content h2 { font-size: 36px; margin-bottom: 20px; }
.about-content p { color: #666; margin-bottom: 15px; }

/* ===== POMOC SEKCIA (Search / Become) ===== */
.help-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: -60px auto 0;
    position: relative;
    z-index: 5;
    max-width: 800px;
}
.help-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.help-card:hover { transform: translateY(-5px); }
.help-card i { font-size: 50px; color: #8b0000; margin-bottom: 20px; }
.help-card h3 { font-size: 20px; margin-bottom: 10px; }
.help-card a { color: #8b0000; font-weight: 700; }

/* ===== AKO POMÓCT ===== */
.howto-section {
    background: #f8f9fa;
    padding: 80px 0;
}
.howto-content { max-width: 700px; margin: 0 auto; text-align: center; }
.howto-content p { color: #666; margin-bottom: 25px; font-size: 16px; }

/* ===== FEATURES ===== */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}
.feature-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: #8b0000;
}
.feature-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(139,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #8b0000;
    transition: all 0.3s;
}
.feature-card:hover .feature-icon { background: #8b0000; color: #fff; }
.feature-card h3 { font-size: 18px; margin-bottom: 12px; }
.feature-card p { color: #666; font-size: 14px; }

/* ===== CIEL & VIZIA ===== */
.goal-section { padding: 80px 0; background: #fff; }
.goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.goal-block h2 { font-size: 30px; margin-bottom: 20px; color: #8b0000; }
.goal-block p { color: #555; line-height: 1.9; }

/* ===== PARTNERI ===== */
.partners-section { padding: 60px 0; background: #f8f9fa; }
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.partner-logo {
    height: 80px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}
.partner-logo:hover { opacity: 1; filter: none; }

/* ===== DARCOVIA ZOZNAM ===== */
.donors-section { padding: 60px 0; }
.donors-filter {
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-group { flex: 1; min-width: 200px; }
.filter-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.filter-group select, .filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.filter-group select:focus, .filter-group input:focus { border-color: #8b0000; outline: none; }

.donors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

.donor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}
.donor-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.donor-card-header {
    background: linear-gradient(135deg, #8b0000, #b30000);
    color: #fff;
    padding: 25px;
    text-align: center;
}
.donor-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}
.donor-card-header h3 { font-size: 18px; color: #fff; }
.donor-blood-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 8px;
}
.donor-card-body { padding: 20px; }
.donor-info { margin-bottom: 8px; font-size: 14px; color: #666; }
.donor-info i { width: 20px; color: #8b0000; margin-right: 8px; }
.donor-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.donor-status.available { background: #e8f5e9; color: #2e7d32; }
.donor-status.unavailable { background: #fbe9e7; color: #c62828; }
.donor-card-footer { padding: 15px 20px; border-top: 1px solid #f0f0f0; text-align: center; }

/* ===== BREADCRUMB ===== */
.breadcrumb-section {
    background: linear-gradient(135deg, #8b0000, #6d0000);
    padding: 50px 0;
    color: #fff;
}
.breadcrumb-section h1 { color: #fff; font-size: 36px; margin-bottom: 10px; }
.breadcrumb-nav { font-size: 14px; opacity: 0.8; }
.breadcrumb-nav a { color: #fff; }
.breadcrumb-nav span { margin: 0 8px; }

/* ===== FORMS ===== */
.form-section { padding: 60px 0; }
.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: #333; }
.form-group label .required { color: #8b0000; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: #8b0000; }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.form-check input[type="checkbox"] { margin-top: 4px; accent-color: #8b0000; }
.form-check label { font-weight: 400; font-size: 13px; cursor: pointer; }
.form-info { background: #f0f7ff; border: 1px solid #cde; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; color: #456; }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32; }
.alert-error { background: #ffebee; border: 1px solid #ffcdd2; color: #c62828; }
.alert-warning { background: #fff3e0; border: 1px solid #ffe0b2; color: #e65100; }
.alert-info { background: #e3f2fd; border: 1px solid #bbdefb; color: #1565c0; }

/* ===== CONTENT PAGE ===== */
.page-content { padding: 60px 0; }
.page-content h2 { font-size: 28px; margin: 30px 0 15px; color: #8b0000; }
.page-content h3 { font-size: 22px; margin: 25px 0 12px; }
.page-content p { margin-bottom: 15px; color: #555; }
.page-content ul { padding-left: 20px; margin-bottom: 20px; }
.page-content ul li { position: relative; padding-left: 20px; margin-bottom: 10px; color: #555; }
.page-content ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #8b0000; }

/* ===== FOOTER ===== */
.footer {
    background: #25283a;
    color: #ccc;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer h4 { color: #fff; font-size: 18px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: #8b0000; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer-links a { display: block; color: #ccc; padding: 5px 0; font-size: 14px; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}
.footer-bottom a { color: #ccc; }
.footer-bottom a:hover { color: #fff; }

/* ===== CONTACT FORM IN FOOTER ===== */
.footer-form input[type="text"], .footer-form input[type="email"], .footer-form input[type="tel"], .footer-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 6px;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}
.footer-form textarea { min-height: 80px; resize: vertical; }
.footer-form button { width: 100%; }
.footer-form .form-check { margin: 10px 0; display: flex; align-items: flex-start; gap: 8px; }
.footer-form .form-check input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: #8b0000; width: 14px; height: 14px; }
.footer-form .form-check label { color: #9aa; font-size: 11px; line-height: 1.4; cursor: pointer; flex: 1; }
.footer-form .form-check label a { color: #ccc; text-decoration: underline; }
.footer-form .form-check label a:hover { color: #fff; }
.footer-form .gdpr-check .required { color: #ff6b6b; }

/* ===== COOKIE BAR ===== */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #25283a;
    color: #fff;
    padding: 18px 20px;
    z-index: 9999;
    display: none;
    font-size: 13px;
}
.cookie-bar.show { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-bar .btn { white-space: nowrap; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 40px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}
.pagination a { background: #f0f0f0; color: #333; }
.pagination a:hover { background: #8b0000; color: #fff; }
.pagination .current { background: #8b0000; color: #fff; }

/* ===== PROFILE PAGE ===== */
.profile-header {
    background: linear-gradient(135deg, #8b0000, #6d0000);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
}
.profile-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.profile-info h2 { color: #fff; margin-bottom: 5px; }
.profile-info p { opacity: 0.85; }
.profile-tabs { display: flex; gap: 5px; margin-bottom: 25px; border-bottom: 2px solid #e0e0e0; }
.profile-tab {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
}
.profile-tab.active { color: #8b0000; border-bottom-color: #8b0000; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-state i { font-size: 60px; margin-bottom: 15px; display: block; }
.empty-state h3 { color: #666; margin-bottom: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .goal-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 38px; }
}

@media (max-width: 768px) {
    .nav-menu { 
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 0;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
    .nav-toggle { display: block; }
    
    .hero { min-height: 450px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    
    .help-cards { grid-template-columns: 1fr; margin-top: -30px; }
    .features-grid { grid-template-columns: 1fr; }
    .donors-filter { flex-direction: column; align-items: stretch; text-align: center; }
    .donors-filter .filter-group { min-width: 100%; }
    .donors-filter .filter-group select, .donors-filter .filter-group input { width: 100%; }
    .donors-filter .filter-group:last-child { display: flex; justify-content: center; }
    .donors-filter .filter-group:last-child .btn { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 28px; }
    .breadcrumb-section h1 { font-size: 26px; }
    .form-card { padding: 25px; }
    .profile-header { flex-direction: column; text-align: center; }
    
    .top-bar .container { flex-direction: column; gap: 5px; }
}
