/**
 * PawCandle Styles
 * Earthy, warm, serene design
 */

:root {
    --color-bg: #F5F1EB;
    --color-bg-light: #FDFCFB;
    --color-primary: #8B4513;
    --color-primary-dark: #5D2E0F;
    --color-accent: #D4A574;
    --color-text: #2D2D2D;
    --color-text-light: #6B7280;
    --color-border: #E5E0D8;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-success: #6B8E23;
    --color-error: #C14A4A;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(to bottom, var(--color-bg-light), var(--color-bg));
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-shadow);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Map Container */
#map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    margin: 2rem 0;
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--color-shadow);
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Wizard */
.wizard {
    max-width: 600px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 1rem;
    position: relative;
}

.wizard-step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: -1;
}

.wizard-step:first-child::before {
    left: 50%;
}

.wizard-step:last-child::before {
    right: 50%;
}

.wizard-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wizard-step.active .wizard-step-number {
    background: var(--color-primary);
    color: white;
}

.wizard-step.completed .wizard-step-number {
    background: var(--color-success);
    color: white;
}

.wizard-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Ritual Options */
.ritual-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ritual-option {
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ritual-option:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.ritual-option.selected {
    border-color: var(--color-primary);
    background: rgba(139, 69, 19, 0.05);
}

.ritual-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Duration Options */
.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.duration-option {
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-option:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.duration-option.selected {
    border-color: var(--color-primary);
    background: rgba(139, 69, 19, 0.05);
}

.duration-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.duration-label {
    color: var(--color-text-light);
}

/* Memorial Page */
.memorial {
    max-width: 800px;
    margin: 0 auto;
}

.memorial-header {
    text-align: center;
    margin-bottom: 2rem;
}

.memorial-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    margin: 2rem auto;
    display: block;
}

.memorial-candle {
    text-align: center;
    margin: 2rem 0;
}

.memorial-message {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--color-shadow);
    margin: 2rem 0;
}

.memorial-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--color-text-light);
}

/* Admin Panel */
.admin-header {
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 12px 12px 0 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Table */
.table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-primary);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: var(--color-bg-light);
}

.table-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .wizard-steps {
        flex-direction: column;
    }
    
    .wizard-step::before {
        display: none;
    }
    
    #map {
        height: 400px;
    }
    
    .ritual-options,
    .duration-options {
        grid-template-columns: 1fr;
    }
}

/* === NOV HERO STIL ZA ZLIVANJE SLIKE === */

/* 1. Toplejše in mehkejše ozadje */
.hero-magical {
    padding: 80px 0 100px; /* Malo več prostora spodaj */
    /* Nežen, topel preliv, ki se ujema s sliko */
    background: linear-gradient(to right, #fffcf8 20%, #fef4e4 100%);
    border-bottom: none; /* Odstranimo oster rob spodaj */
    position: relative;
    overflow: hidden;
}

/* 2. Mreža z malo več prostora za sliko */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Slika dobi malo več prostora */
    align-items: center;
    gap: 30px;
}

.hero-content {
    z-index: 2; /* Zagotovimo, da je besedilo nad sliko, če se prekrivata */
    padding-right: 20px;
}

/* 3. Kontejner za sliko */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. Slika z mehkim zlitjem (CSS Maska) */
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 24px; /* Mehkejši robovi */

    /* KLJUČNO: Maska za mehak prehod na levi in spodnji strani */
    /* To ustvari učinek, da slika "izhaja" iz ozadja */
    -webkit-mask-image: linear-gradient(110deg, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(110deg, transparent 0%, black 15%, black 85%, transparent 100%);

    /* Nežna senca, ki se zlije s toplim ozadjem */
    filter: drop-shadow(0 25px 50px rgba(139, 69, 19, 0.2));

    /* Rahlo prekrivanje v levo za bolj povezan občutek */
    margin-left: -40px;
    transform: scale(1.08); /* Rahlo povečamo za bolj dramatičen učinek */
    transition: all 0.5s ease-out;
}

/* ODSTRANI STARI STIL: .magical-frame { ... } - tega ne rabiva več */


/* Tribute Flex Fix */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.tributes-flex { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.tribute-card { width: 280px; background: white; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; }

/* Info Card */
.info-card { 
    background: #ffffff; 
    padding: 50px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    border: 1px solid #f5f5f5; 
    max-width: 900px; 
    margin: 0 auto; 
    text-align: center;
}
.info-icon { font-size: 3rem; margin-bottom: 20px; }
.count-badge { background: #5d4037; color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; }

/* Mobile Fix */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; margin-bottom: 30px; }
}

/* Prilagoditev za mobilne naprave */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    .hero-visual {
        order: 2;
    }
    .hero-img {
        margin-left: 0;
        transform: scale(1);
        max-width: 95%;
        /* Na mobilnih maska zgoraj in spodaj */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    }
}

/* =========================================
   NAVIGACIJA IN MOBILNI MENI (HAMBURGER)
========================================= */
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link { color: var(--color-primary); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-link:hover { color: var(--color-primary-dark); }

/* Skrit hamburger gumb za desktop */
.hamburger { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--color-primary-dark); padding: 5px; }

/* Na velikih zaslonih mobilni CTA skrijemo */
@media (min-width: 769px) {
    .mobile-cta { display: none; }
}

/* Mobilni stili */
@media (max-width: 768px) {
    /* Prikazemo hamburger gumb */
    .hamburger { display: block; }
    
    /* Skrijemo standardni gumb v headerju (tisti, ki ni v meniju) */
    .header-content > div > .btn-primary:not(.mobile-cta) { display: none; }

    /* Mobilni meni - privzeto skrit in zdrsne od zgoraj */
    #mobile-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Višina headerja */
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        border-bottom: 2px solid var(--color-accent);
    }

    /* Ko je meni aktiven, zdrsne dol */
    #mobile-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid #f0e6dd;
        width: 100%;
        text-align: center;
    }
    
    .nav-link:last-child { border-bottom: none; }
    
    /* Pokažemo gumb znotraj mobilnega menija */
    .mobile-cta {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}
/* =========================================
   POSODOBITVE — 2026 (PawCandle refresh)
========================================= */

/* Topel knjižnjičarski font v body (Lora se je nalagal, ampak se ni uporabljal) */
body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
}
/* UI elementi naj ostanejo v sans-serifu zaradi berljivosti */
.btn, .nav-link, .lang-switcher, input, textarea, select, button,
.header-content, .hamburger, .map-meta, .donation-badge {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

/* MANJKAJOČA RAZRED — btn-large (uporabljen v hero-CTA-ju) */
.btn-large {
    padding: 1.05rem 2.4rem;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 8px 18px -6px rgba(139, 69, 19, 0.4);
}
.btn-large:hover {
    box-shadow: 0 14px 28px -8px rgba(139, 69, 19, 0.5);
    transform: translateY(-3px);
}

/* Glavni CTA dobi bolj toplo "candle glow" verzijo */
.btn-primary.btn-large {
    background: linear-gradient(135deg, var(--color-primary) 0%, #a55620 100%);
}
.btn-primary.btn-large:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #8B4513 100%);
}

/* Header polished */
header { backdrop-filter: blur(6px); }

/* Map popup — Lora */
.leaflet-popup-content { font-family: 'Lora', Georgia, serif; }

/* Mehkejši fokus za dostopnost */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Skritje desktop CTA na mobilu */
@media (max-width: 768px) {
    .desktop-cta { display: none !important; }
}
