/*
Theme Name: Armáda Spásy Custom
Theme URI: https://armadaspasy.sk
Author: Alexei Chiriac
Description: Špičková na mieru kódovaná šablóna bez zbytočného balastu.
Version: 1.0
Text Domain: armadaspasy
*/

/* Tu nižšie už budeš písať svoj vlastný CSS kód... */
/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: #1a1a1a; background-color: #fafafa; line-height: 1.6; }

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* LOGO */
.brand-logo {
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: #e20613;
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: block;
}

/* HLAVNÉ MENU */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list > li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    display: inline-block;
    transition: color 0.2s ease;
}

.nav-list a:hover {
    color: #e20613;
}

/* OPRAVA DROPDOWN PODMENU (Zobrazenie pri prechode myšou) */
.nav-list ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.8rem 0;
    min-width: 240px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 100;
}

.nav-list li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list ul.sub-menu li {
    width: 100%;
    margin: 0;
}

.nav-list ul.sub-menu a {
    padding: 0.6rem 1.2rem;
    display: block;
    color: #444;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-list ul.sub-menu a:hover {
    background: #f8f8f8;
    color: #e20613;
}

/* AKCIE A JAZYKOVÝ PREPÍNAČ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.lang-switcher li {
    margin: 0;
}

.lang-switcher li a {
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    color: #777;
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-switcher li.current-lang a,
.lang-switcher li a:hover {
    color: #e20613;
    background: rgba(226, 6, 19, 0.08);
}

.btn-donate {
    background: #e20613;
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(226, 6, 19, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 6, 19, 0.4);
}

/* HERO SEKCIA */
.hero { position: relative; height: 85vh; display: flex; align-items: center; justify-content: center; background: #111 url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=1600') center/cover no-repeat; color: #fff; text-align: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 1.5rem; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }
.btn-primary { background: #e20613; color: #fff; padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 700; }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 700; }

/* ZBORY & CENTRÁ GRID */
.centers-section { padding: 6rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
.centers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem; }
.center-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: transform 0.3s, box-shadow 0.3s; }
.center-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.card-image { height: 200px; background-size: cover; background-position: center; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.card-btn { display: inline-block; margin-top: 1rem; color: #e20613; font-weight: 700; text-decoration: none; }

/* FOOTER */
.site-footer { background: #111; color: #fff; padding: 4rem 2rem 2rem; text-align: center; margin-top: 4rem; }

/* ==========================================
   IMPACT / STATISTICS BAR
   ========================================== */
.impact-bar {
    background-color: #ffffff;
    max-width: 1140px;
    margin: -4rem auto 4rem auto; /* Záporný okraj vytvorí plávajúci efekt nad fotkou */
    position: relative;
    z-index: 10;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.impact-item {
    text-align: center;
    padding: 0.5rem 1rem;
    position: relative;
}

/* Jemná deliaca čiara medzi položkami na desktope */
.impact-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #eaeaea;
}

.impact-number {
    display: block;
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #e20613;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.impact-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.3;
}

/* RESPONSIVE UPRAVY PRE MOBILY */
@media (max-width: 850px) {
    .impact-bar {
        margin: 2rem 1.5rem;
        border-radius: 12px;
        padding: 2rem 1rem;
    }
    
    .impact-item:not(:last-child)::after {
        display: none;
    }
}

/* ==========================================
   PILIERE POMOCI (PILLARS)
   ========================================== */
.pillars-section {
    padding: 5rem 1.5rem;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(226, 6, 19, 0.2);
}

.pillar-icon {
    margin-bottom: 1.2rem;
    display: inline-flex;
}

/* Nastavenie rozmerov a farby pre SVG ikony */
.pillar-icon svg {
    width: 44px;
    height: 44px;
    color: #e20613; /* Ikonická červená farba Armády Spásy */
    transition: transform 0.3s ease;
}

/* Jemný hover efekt na ikone pri nabehnutí na celú kartu */
.pillar-card:hover .pillar-icon svg {
    transform: scale(1.1);
}

.pillar-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.pillar-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pillar-link {
    color: #e20613;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: letter-spacing 0.2s ease;
}

.pillar-card:hover .pillar-link {
    letter-spacing: 0.03em;
}
/* ==========================================
   PRÍBEHY A AKTUALITY
   ========================================== */
.news-section {
    padding: 6rem 1.5rem;
    background-color: #ffffff;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    margin-bottom: 3rem;
}

.news-header h2 {
    margin-bottom: 0;
}

.link-all {
    color: #e20613;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.link-all:hover {
    opacity: 0.7;
}

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

.news-card {
    display: flex;
    flex-direction: column;
}

.news-image-link {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.news-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05); /* Jemný zoom efekt */
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-content h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.news-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.news-content h3 a:hover {
    color: #e20613;
}

.news-content p {
    color: #555;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ==========================================
   CALL TO ACTION (CTA)
   ========================================== */
.cta-section {
    padding: 0 1.5rem 6rem;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #e20613; /* Červená Armády Spásy */
    border-radius: 24px;
    padding: 5rem 2rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(226, 6, 19, 0.2);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    background: #ffffff;
    color: #e20613;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
/* ==========================================
   VYHĽADÁVANIE (LIVE SEARCH)
   ========================================== */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    width: 24px;
    height: 24px;
    color: #999;
}

.center-search-input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    font-size: 1.1rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    border: 2px solid #eaeaea;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.center-search-input:focus {
    border-color: #e20613;
    box-shadow: 0 15px 30px rgba(226, 6, 19, 0.1);
}

.center-search-input::placeholder {
    color: #aaa;
}

/* Trieda pre skrytie kariet cez JavaScript */
.center-card.hidden {
    display: none;
}
/* ==========================================
   DAROVACIA STRÁNKA (DONATION PAGE)
   ========================================== */
.donation-hero {
    background-color: #fcfcfc;
    padding: 6rem 1.5rem 3rem;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
}

.donation-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.donation-hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.donation-hero-content p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
}

.donation-main {
    padding: 4rem 1.5rem 6rem;
    background-color: #ffffff;
}

.donation-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Ľavá strana (Formulár) */
.donation-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.donation-box h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.donation-subtitle {
    color: #777;
    margin-bottom: 2.5rem;
}

.amount-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.2s ease;
    position: relative;
}

.amount-btn:hover {
    border-color: #e20613;
    background-color: rgba(226, 6, 19, 0.03);
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.amount-desc {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.amount-btn-popular {
    border-color: #e20613;
    background-color: rgba(226, 6, 19, 0.03);
    box-shadow: 0 8px 20px rgba(226, 6, 19, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #e20613;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-amount {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
}

.custom-amount p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.btn-custom-amount {
    display: inline-block;
    background: #1a1a1a;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-custom-amount:hover {
    background: #e20613;
}

.secure-payment-info {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.lock-icon {
    width: 24px;
    height: 24px;
    color: #10b981; /* Bezpečnostná zelená */
    flex-shrink: 0;
}

/* Pravá strana (Informácie) */
.donation-info-wrapper {
    padding-top: 2rem;
}

.info-block {
    margin-bottom: 3rem;
}

.info-block h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.impact-list {
    list-style: none;
}

.impact-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.2rem;
    color: #444;
}

.check-icon {
    position: absolute;
    left: 0;
    top: 2px;
    color: #e20613;
    font-weight: 800;
}

.bank-transfer-block {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #e20613;
}

.bank-transfer-block h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.bank-transfer-block p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.bank-details {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.bank-details p {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.bank-details p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .donation-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .donation-box {
        padding: 2rem 1.5rem;
    }
    
    .amount-btn {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}