/* assets/css/style.css - MODERN & RESPONSIVE */
/* Pa Google Fonts (privatësia e fëmijëve): përdoret Nunito nëse është në pajisje, përndryshe fonti i sistemit. */

:root {
    --primary: #FF6B6B;   /* Coral Red */
    --secondary: #4ECDC4; /* Teal */
    --accent: #FFE66D;    /* Yellow */
    --dark: #2D3436;      /* Dark Gray */
    --light: #F7F9FC;     /* Off White */
    --gradient: linear-gradient(135deg, #4ECDC4 0%, #556270 100%);
    --font: ui-rounded, 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.streak-box {
    background: #FF5722; /* Portokalli e fortë */
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 0 #E64A19;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

body {
    font-family: var(--font);
    background-color: var(--light);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Kjo mban footerin poshtë */
}

/* --- KONTEJNERI & NAVBAR --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.navbar {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

/* --- HERO SECTION (Landing Page) --- */
.hero {
    background: var(--gradient);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 50% 10% / 20px;
    margin-bottom: 40px;
}

.hero h1 { font-size: 3rem; margin-bottom: 15px; line-height: 1.2; text-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- BUTONAT --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

/* --- KARTAT & FORMAT --- */
.main-content {
    flex: 1; /* Mbush hapësirën boshe */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 450px; /* Max gjerësi për Login/Register */
    text-align: center;
}

input {
    width: 100%;
    padding: 15px;
    margin: 10px 0 20px 0;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus { outline: none; border-color: var(--secondary); }

.google-btn {
    background: white; color: #333; border: 2px solid #eee; width: 100%; padding: 12px;
    border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 10px; font-weight: bold; margin-top: 10px; font-size: 16px;
}
.google-btn:hover { background: #f9f9f9; }

/* --- SEKSIONI FEATURES (Index) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.feature-item:hover { transform: translateY(-10px); }
.f-icon { font-size: 40px; background: #e0f7fa; width: 80px; height: 80px; line-height: 80px; border-radius: 50%; margin: 0 auto 20px; display:block; }

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}
footer a { color: var(--secondary); text-decoration: none; }

/* --- RESPONSIVE (TELEFON) --- */
@media (max-width: 768px) {
    .navbar { padding: 10px 14px; }
    .hero { padding: 50px 18px; }
    .hero h1 { font-size: 1.9rem; }
    .card { padding: 22px; }
    .features-grid { grid-template-columns: 1fr; }
    .menu-toggle { display: inline-block !important; font-size: 1.3rem; }
    .nav-links.collapsible { display: none; width: 100%; flex-direction: column; align-items: stretch; }
    .nav-links.collapsible.open { display: flex; }
    .nav-links.collapsible .btn, .nav-links.collapsible form, .nav-links.collapsible form .btn { width: 100%; text-align: center; }
    .page { padding: 20px 14px 50px; }
    .prose { padding: 22px; }
}
.menu-toggle { display: none; }

/* --- GOOGLE BUTTON & DIVIDER --- */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

.divider span {
    padding: 0 10px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: white;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 50px; /* Rrumbullak */
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font);
    font-size: 16px;
}

.google-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.google-btn img {
    width: 20px;
    margin-right: 10px;
}

/* ================= SHTESA v2 ================= */
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; font-size: 15px; text-align: left; }
.alert-ok { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.alert-error { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }
.alert-info { background: #E3F2FD; color: #0D47A1; border: 1px solid #90CAF9; }
select, textarea { width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 12px; font-family: inherit; font-size: 16px; margin: 6px 0 14px; background: #fff; }
select:focus, textarea:focus { outline: none; border-color: var(--secondary); }
label.field { display: block; text-align: left; font-weight: 700; font-size: 14px; color: #555; margin-top: 4px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 14px; margin: 6px 0 16px; }
.check-row input { width: auto; margin: 3px 0 0; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-light { background: #fff; color: #333; border: 2px solid #eee; }
.btn-warning { background: #FFB300; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.inline-form { display: inline; margin: 0; }
.muted { color: #888; font-size: 14px; }
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nav-links form { margin: 0; }
.page { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; width: 100%; }
.prose { max-width: 800px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 20px; line-height: 1.7; text-align: left; }
.prose h1, .prose h2 { margin: 20px 0 10px; color: #2c3e50; }
.prose ul { padding-left: 22px; }
:focus-visible { outline: 3px solid #FFB300; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Data e lindjes: tri fusha të mëdha, të lehta për t'u prekur në telefon */
.dob-fields { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.dob-fields select { margin: 0; padding: 12px 26px 12px 12px; font-size: 16px; font-weight: 700; border-radius: 12px; min-width: 0; }
.dob-fields select[name=dob_d] { flex: 0 0 78px; }
.dob-fields select[name=dob_m] { flex: 1 1 120px; }
.dob-fields select[name=dob_y] { flex: 1 1 96px; }
.dob-age { min-height: 22px; font-weight: 800; color: #00897B !important; margin-bottom: 8px; text-align: left; }

/* Karta e planit te paneli i prindit */
.plan-card { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; margin: -10px 0 28px;
             box-shadow: 0 14px 34px rgba(255, 112, 67, .18); background: #fff; border: 2px solid #FFE0D2; }
.plan-main { padding: 26px 28px; background: linear-gradient(135deg, #FFF8F3 0%, #FFFFFF 70%); }
.plan-tag { display: inline-block; background: #FFE9E1; color: #E64A19; font-weight: 900; padding: 6px 14px; border-radius: 50px; font-size: .95rem; }
.plan-count { margin: 12px 0 10px; color: #263238; font-weight: 800; font-size: 1.1rem; }
.plan-count b { font-size: 3rem; line-height: 1; color: #FF6B6B; font-weight: 900; vertical-align: -6px; }
.plan-count span { color: #607D8B; font-weight: 700; }
.plan-bar { height: 12px; background: #F1F3F4; border-radius: 10px; overflow: hidden; max-width: 420px; }
.plan-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4ECDC4, #FFB74D, #FF6B6B); border-radius: 10px; }
.plan-text { color: #455A64; line-height: 1.6; margin: 14px 0 12px; max-width: 560px; }
.plan-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plan-perks li { background: #F1F8E9; color: #33691E; font-weight: 700; padding: 6px 12px; border-radius: 50px; font-size: .9rem; }
.plan-offer { background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); color: #fff; padding: 26px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.plan-price small { font-weight: 700; opacity: .9; }
.plan-price-sub { opacity: .92; font-size: .92rem; font-weight: 600; }
.plan-cta { margin-top: 10px; background: #fff; color: #E64A19; font-weight: 900; font-size: 1.1rem; padding: 15px 26px; border-radius: 50px; text-decoration: none;
            box-shadow: 0 8px 20px rgba(0,0,0,.15); transition: transform .15s; width: 100%; max-width: 300px; }
.plan-cta:hover { transform: translateY(-2px); }
.plan-safe { font-size: .82rem; opacity: .9; margin-top: 4px; }
.plan-card.urgent { border-color: #FFCDD2; animation: planGlow 2.4s ease-in-out infinite; }
.plan-card.urgent .plan-tag { background: #FFEBEE; color: #C62828; }
.plan-card.expired .plan-main { background: linear-gradient(135deg, #F5F7F8 0%, #FFFFFF 70%); }
.plan-card.expired .plan-count b { color: #546E7A; }
@keyframes planGlow { 0%,100% { box-shadow: 0 14px 34px rgba(255,112,67,.18); } 50% { box-shadow: 0 14px 40px rgba(229,57,53,.35); } }
@media (max-width: 760px) {
    .plan-card { grid-template-columns: 1fr; }
    .plan-main { padding: 22px 20px; }
    .plan-count b { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .plan-card.urgent { animation: none; } }

/* Kufiri i video lojërave te karta e fëmijës */
.game-limit-tag { display: inline-block; margin: -4px 0 12px; background: #EDE7F6; color: #5E35B1; border-radius: 50px; padding: 5px 12px; font-size: .85rem; font-weight: 700; text-decoration: none; }
.game-limit-tag:hover { background: #D1C4E9; }
.btn-insights { width: 100%; background: linear-gradient(120deg, #7E57C2, #5E35B1); color: #fff !important; box-sizing: border-box; }

/* ---------- Pajisjet e fëmijës (devices.php) ---------- */
.dv-wrap { max-width: 640px; padding: 24px 16px 60px; }
.dv-back { display: inline-block; margin-bottom: 10px; color: #7e57c2; font-weight: 700; text-decoration: none; }
.dv-card { max-width: none; padding: 24px; text-align: left; }
.dv-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.dv-head img { width: 72px; height: 72px; border-radius: 50%; background: #f3e5f5; flex: none; }
.dv-head h1 { font-size: 1.4rem; margin: 0 0 4px; color: #4a148c; }
.dv-head p { margin: 0; font-size: .92rem; }
.dv-big { width: 100%; font-size: 1.15rem; padding: 16px; border-radius: 16px; }
.dv-how { color: #546e7a; font-size: .95rem; padding-left: 22px; margin: 14px 0 6px; }
.dv-how li { margin: 6px 0; }
.dv-invite { background: #e8f5e9; border: 2px solid #a5d6a7; border-radius: 18px; padding: 16px; }
.dv-step { font-weight: 800; color: #2e7d32; margin-bottom: 8px; }
.dv-msg { white-space: pre-wrap; word-break: break-all; background: #fff; border-radius: 12px; padding: 12px; font-family: inherit; font-size: .95rem; margin: 0 0 10px; color: #37474f; }
.dv-code { font-size: 1.1rem; margin-bottom: 12px; color: #37474f; }
.dv-code b { font-size: 1.6rem; letter-spacing: 3px; color: #1b5e20; }
.dv-code span { font-size: .85rem; color: #78909c; }
.dv-share { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-sb { border: none; border-radius: 50px; padding: 10px 16px; font-weight: 800; font-size: .95rem; color: #fff; text-decoration: none; cursor: pointer; font-family: inherit; }
.dv-sb.wa { background: #25D366; } .dv-sb.ms { background: #0084FF; } .dv-sb.vb { background: #7360F2; }
.dv-sb.em { background: #546E7A; } .dv-sb.sm { background: #FB8C00; } .dv-sb.cp { background: #fff; color: #37474f; border: 2px solid #cfd8dc; }
.dv-sb.dv-native { background: #263238; }
.dv-note { font-size: .85rem; margin-top: 12px; }
.dv-inline { margin-top: 6px; }
.btn-link { background: none; border: none; color: #c62828; font-weight: 700; cursor: pointer; padding: 0; font-family: inherit; }
.dv-full { background: #fff8e1; border: 2px solid #ffe082; border-radius: 14px; padding: 12px; color: #6d4c41; font-weight: 700; }
.dv-h2 { font-size: 1.1rem; margin: 24px 0 10px; display: flex; justify-content: space-between; color: #37474f; }
.dv-h2 span { color: #90a4ae; }
.dv-dev { display: flex; gap: 12px; align-items: center; border: 2px solid #eceff1; border-radius: 16px; padding: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.dv-dev.off { background: #fafafa; border-style: dashed; }
.dv-ic { font-size: 30px; }
.dv-info { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.dv-info span { font-size: .85rem; color: #78909c; }
.dv-info .dv-st { color: #e65100; font-weight: 700; }
.dv-act { display: flex; gap: 6px; }
.dv-act .btn { padding: 8px 12px; font-size: .9rem; border-radius: 12px; }
.dv-pause { background: #fff3e0; color: #e65100; } .dv-resume { background: #e8f5e9; color: #2e7d32; } .dv-remove { background: #ffebee; color: #c62828; }
.dev-tag { display: inline-block; margin: 0 0 12px; background: #E3F2FD; color: #1565C0; border-radius: 50px; padding: 5px 12px; font-size: .85rem; font-weight: 700; text-decoration: none; }
.dev-tag:hover { background: #BBDEFB; }
