/*
Theme Name: Upoznavanje
Theme URI: https://example.com
Author: Vaš Sajt
Author URI: https://example.com
Description: Moderna, responzivna WordPress tema za sajtove za upoznavanje i oglase. Prikazuje sve postove u grid formatu sa slikom, naslovom, kratkim opisom i dugmetom "Pogledaj oglas".
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upoznavanje
*/

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

:root {
    --primary: #ff4d6d;
    --primary-dark: #c9184a;
    --primary-light: #ff8fa3;
    --bg: #fff5f7;
    --dark: #2b2d42;
    --gray: #6c757d;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(255, 77, 109, 0.12);
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-branding .site-title {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-branding .site-description {
    font-size: 12px;
    color: var(--gray);
    margin-top: -2px;
}

.main-navigation ul {
    display: flex;
    gap: 28px;
}

.main-navigation a {
    font-weight: 500;
    font-size: 15px;
    color: var(--dark);
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--primary);
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 70px 20px 90px;
    border-radius: 0 0 40px 40px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== OGLASI GRID ===== */
.oglasi-section {
    padding: 50px 0 80px;
}

.oglasi-grid {
    margin-top: -50px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}

.oglas-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.oglas-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(255, 77, 109, 0.2);
}

.oglas-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f1f1f1;
}

.oglas-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.oglas-card:hover .oglas-thumb img {
    transform: scale(1.06);
}

.oglas-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.oglas-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.oglas-body h2 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.oglas-meta {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 10px;
}

.oglas-excerpt {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 18px;
    flex-grow: 1;
}

.btn-pogledaj {
    display: inline-block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 0;
    border-radius: 30px;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-pogledaj:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ===== NO POSTS ===== */
.no-oglasi {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

/* ===== PAGINATION ===== */
.oglasi-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.oglasi-pagination a,
.oglasi-pagination span {
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 14px;
    font-weight: 500;
}

.oglasi-pagination span.current {
    background: var(--primary);
    color: var(--white);
}

/* ===== SINGLE OGLAS ===== */
.single-oglas {
    max-width: 800px;
    margin: 40px auto;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.single-oglas .oglas-thumb {
    aspect-ratio: 16 / 9;
}

.single-oglas-body {
    padding: 30px;
}

.single-oglas-body h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.single-oglas-body .oglas-meta {
    margin-bottom: 20px;
}

.single-oglas-content {
    font-size: 16px;
    color: var(--dark);
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    color: var(--primary-dark);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: #cfcfcf;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    font-size: 14px;
}

.site-footer a {
    color: var(--primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 782px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 10px 20px 20px;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid #f1f1f1;
    }

    .main-navigation a {
        display: block;
        padding: 14px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .oglasi-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
        margin-top: -40px;
    }

    .oglas-body h2 {
        font-size: 16px;
    }

    .single-oglas-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 16px 70px;
    }

    .oglasi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .oglas-body {
        padding: 12px;
    }

    .btn-pogledaj {
        font-size: 13px;
        padding: 10px 0;
    }
}
