/* ===== MEKTEB.NET HOMEPAGE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Lora', serif;
    background: linear-gradient(135deg, #064e3b 0%, #0f766e 50%, #065f46 100%);
    min-height: 100vh;
    color: white;
}
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

.header { text-align: center; padding: 3rem 0 2rem; }
.logo-img { width: 130px; height: auto; margin: 0 auto 0.8rem; display: block; }
.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #fbbf24;
    margin-bottom: 0.4rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.subtitle { font-size: 1.2rem; color: #d1fae5; margin-bottom: 1.8rem; }

.user-bar {
    background: rgba(0,0,0,0.2);
    padding: 12px 25px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(251,191,36,0.3);
}
.btn {
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid #fbbf24;
    background: transparent;
    color: white;
    font-size: 0.95rem;
    display: inline-block;
    margin: 0 5px;
}
.btn:hover { background: #fbbf24; color: #064e3b; transform: translateY(-2px); }

/* GRID */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

/* KARTICA */
.section-card {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: white;
}
.section-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* Gornji obojeni dio */
.card-cover {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.card-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}
.pattern-bg {
    position: absolute;
    top: 10px;
    right: 0;
    width: 52%;
    height: 52%;
    opacity: 0.18;
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
}

/* Boje */
.cover-green  { background: linear-gradient(135deg, #059669, #047857); }
.cover-gold   { background: linear-gradient(135deg, #d97706, #b45309); }
.cover-blue   { background: linear-gradient(135deg, #0891b2, #0e7490); }
.cover-purple { background: linear-gradient(135deg, #7c3aed, #4c1d95); }

/* Donji bijeli dio */
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #065f46;
    margin-bottom: 0.6rem;
}
.card-desc { color: #6b7280; font-size: 0.9rem; line-height: 1.6; flex: 1; margin-bottom: 1.2rem; }
.card-btn {
    display: block;
    width: 100%;
    padding: 0.85rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Lora', serif;
    color: white;
}
.card-btn:hover { transform: scale(1.02); filter: brightness(1.1); }
.btn-green  { background: linear-gradient(135deg, #059669, #047857); }
.btn-gold   { background: linear-gradient(135deg, #d97706, #b45309); }
.btn-blue   { background: linear-gradient(135deg, #0891b2, #0e7490); }
.btn-purple { background: linear-gradient(135deg, #7c3aed, #4c1d95); }

/* FOOTER */
.edu-footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(251,191,36,0.2);
    color: #d1fae5;
}
.coffee-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFDD00, #FDB913);
    color: #1a1a1a;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin: 1.5rem 0;
    transition: all 0.3s;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(255,221,0,0.3);
}
.coffee-btn:hover { transform: translateY(-3px); }
.footer-links { margin-top: 1.5rem; font-size: 0.9rem; }
.footer-links a { color: #fbbf24; text-decoration: none; margin: 0 10px; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .site-title { font-size: 2.5rem; }
    .sections-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .card-cover { height: 150px; }
    .card-icon { width: 65px; height: 65px; }
}
@media (max-width: 480px) {
    .sections-grid { grid-template-columns: 1fr; }
}
