/* css/style.css */
:root {
    /* --- APP SZÍNSÉMA (colors.js alapján) --- */
    --primary: #2694ab;       /* Élénk, modern Türkiz */
    --primary-dark: #005f73;  /* A Premium képernyő gradient sötét vége */
    
    --secondary: #FF8A65;     /* Pasztell Korall */
    --secondary-dark: #E66A45; /* Gomb hover hatáshoz sötétítve */
    
    --text: #2D3748;          /* Sötétszürke (Elegánsabb, mint a fekete) */
    --text-light: #A0AEC0;    /* Világosszürke */
    
    --bg-light: #F8F9FA;      /* Törtfehér háttér */
    --white: #FFFFFF;
    
    --radius: 16px;           /* Kicsit modernebb, nagyobb lekerekítés */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
}

html {
    scroll-behavior: smooth; /* Ettől szépen odacsúszik, nem csak oda ugrik */
}

/* Navigáció */
.navbar {
    background: var(--white);
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(38, 148, 171, 0.1); /* Enyhe türkiz árnyék */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-login {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(38, 148, 171, 0.3);
}

/* Konténerek */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Gombok */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

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

.btn-secondary {
    background: var(--secondary);
    color: white; /* A korallhoz a fehér szöveg jobban illik */
}

/* Back Button */
.back-nav {
    margin-bottom: 20px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light); /* Halványabb, diszkrétebb vissza gomb */
    font-weight: 600;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--primary);
}
.back-link span { margin-left: 8px; }

/* Language Switch */
.language-switch { text-align: right; margin-bottom: 20px; }
.language-switch button { 
    padding: 6px 14px; 
    cursor: pointer; 
    background: #EDF2F7; /* App-hű világos háttér */
    border: none; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    color: var(--text);
    font-weight: 600;
    margin-left: 5px;
}
.language-switch button.active { 
    background: var(--primary); 
    color: white; 
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}
footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Hero Section (Főoldal) */
.hero {
    text-align: center;
    padding: 80px 20px;
}
.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 10px; 
    color: var(--primary); /* A fő szín */
    font-weight: 900;
}
.hero p { 
    font-size: 1.25rem; 
    color: var(--text); 
    max-width: 600px; 
    margin: 0 auto 40px auto; 
    line-height: 1.5;
}

/* Shelter Section - App Gradient */
.shelter-cta {
    /* Ugyanaz a gradient, mint a PremiumScreen.js háttere */
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(38, 148, 171, 0.4);
}
.shelter-cta h2 { color: white; margin-top: 0; font-size: 2rem; }
.shelter-cta p { opacity: 0.9; margin-bottom: 30px; font-size: 1.1rem; }

/* --- LOGÓK ÉS IKONOK --- */

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 8px;
    vertical-align: middle;
}

.app-icon-lg {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(38, 148, 171, 0.25); /* Színes árnyék */
    margin-bottom: 25px;
}

/* Űrlap elemek (Loginhoz) */
input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 1rem;
    color: var(--text);
    background: #F7FAFC;
}
input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(38, 148, 171, 0.1);
}

/* Nyelvválasztó legördülő */
.lang-select {
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    background-color: #F7FAFC;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}
.lang-select:focus {
    border-color: var(--primary);
}

/* --- ÁRAZÁS / ÖSSZEHASONLÍTÓ SZEKCIÓ --- */

.pricing-section {
    padding: 60px 20px;
    text-align: center;
}

.pricing-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 800;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Mobilon egymás alá kerülnek */
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Kiemelt Premium Kártya */
.plan-card.premium {
    border-color: var(--secondary); /* Narancs keret */
    background: linear-gradient(to bottom, #fff, #fff9f5); /* Enyhe narancs beütés alul */
}
.plan-card.premium strong {
    color: var(--primary-dark); /* Kicsit sötétebb szín a kiemelt funkcióknak */
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 138, 101, 0.4);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-light);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    flex-grow: 1;
}

.feature-list li {
    padding: 12px 0; 
    border-bottom: 1px solid #f0f0f0;
    color: var(--text);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    line-height: 1.3;
    
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Pipák és X-ek */
.check { color: var(--primary); margin-right: 10px; font-weight: bold; }
.cross { color: #ccc; margin-right: 10px; }
.feature-disabled {
    color: #cbd5e0; /* Világosabb szürke */
    text-decoration: none; /* Kivettem az áthúzást, mert sokszor csúnya, inkább csak halvány legyen */
}

.check, .cross {
    display: inline-block;
    width: 25px; /* Fix szélesség az ikonnak, hogy a szöveg egy vonalban kezdődjön */
    text-align: center;
    flex-shrink: 0;
}

/* Mobilos nézet javítása */
@media (max-width: 768px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
}

.free-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.free-badge .icon {
    margin-right: 6px;
    color: #FFD700; /* Arany színű pipa vagy csillag */
}

/* --- SHELTER PORTAL LAYOUT --- */

.portal-container {
    display: flex;
    min-height: calc(100vh - 70px); /* Navbar magasság levonva */
    background-color: #F8F9FA;
}

/* Oldalsáv */
.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #eee;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

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

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

.sidebar-btn:hover, .sidebar-btn.active {
    background-color: #E0F7FA; /* Halvány türkiz */
    color: var(--primary);
    font-weight: bold;
}

.sidebar-btn .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Fő tartalom terület */
.portal-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.portal-header {
    margin-bottom: 30px;
}

.portal-greeting {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
}

.portal-org-name {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Statisztika Kártyák (DashboardScreen.js stílusa alapján) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: white;
}

.stat-info h3 { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat-info p { margin: 0; color: var(--text-light); font-size: 0.9rem; }

/* Színek az app alapján */
.bg-orange { background-color: #FFB74D; }
.bg-blue { background-color: #4DD0E1; }
.bg-green { background-color: #81C784; }
.bg-red { background-color: #E57373; }

/* Reszponzivitás */
@media (max-width: 768px) {
    .portal-container { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid #eee; padding: 10px; }
    .sidebar-menu { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 5px; }
    .sidebar-btn { white-space: nowrap; }
}
