/*
Theme Name: Zivjeti Zdravije Dark
Theme URI: https://zivjetizdravije.info
Author: Custom Theme
Description: Ultra-brza, tamna WordPress tema sa potpunom podrškom za AdSense skripte.
Version: 3.1.0
License: GNU General Public License v2 or later
Text Domain: zivjetizdravije
*/

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: #ff3b30;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ff6056;
}

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

header {
    background-color: #1e1e1e;
    border-bottom: 2px solid #ff3b30;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: #ff3b30;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav a {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
}

nav a:hover {
    color: #007aff;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 2.8fr 1.2fr;
    }
}

.main-layout.no-sidebar {
    grid-template-columns: 1fr;
}

.content-area {
    min-width: 0;
}

.sidebar {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2a2a2a;
    height: fit-content;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff3b30;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    background: #121212;
    padding: 4px;
    border-radius: 8px;
}

.tab-btn {
    flex: 1;
    padding: 8px 5px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}

.tab-btn.active {
    background: #ff3b30;
    color: #ffffff;
}

.popular-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.popular-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-info {
    flex: 1;
}

.popular-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 4px 0;
}

.popular-meta {
    font-size: 12px;
    color: #007aff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #2a2a2a;
}

.post-title {
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.single-post-title {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
}

.single-post-content p {
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-fb { background: #1877f2; }
.share-viber { background: #7360f2; }
.share-wa { background: #25d366; }

.adsense-slot {
    margin: 20px 0;
    text-align: center;
}

.recommended-section {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.recommended-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.recommended-card {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #2a2a2a;
}

.recommended-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

footer {
    background: #1e1e1e;
    border-top: 1px solid #2a2a2a;
    padding: 30px 0;
    text-align: center;
    color: #888;
    font-size: 14px;
}
