body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
}

/* HEADER */
.header {
    background: #111;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 8px 20px;
    background: #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: font-size 0.3s ease;
}

.header.scrolled .logo a {
    font-size: 22px;
}

.logo span {
    color: #FFD700;
}

/* NAVIGACIJA */
.nav {
    display: flex;
    gap: 18px;
    margin: 0;
    transition: all 0.3s ease;
}

.nav a {
    color: #ddd;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* SEARCH */
.search-box {
    display: flex;
}

.search-box form {
    display: flex;
}

.search-box input {
    padding: 6px 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    background: #FFD700;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #ff5722;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 999;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* RESPONSIVE MENI */
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #111;
        max-height: 0;
        overflow: hidden;
        border-top: 1px solid #222;
        transition: max-height 0.3s ease;
    }
    .nav.show {
        max-height: 500px;
        padding: 10px 0;
        z-index: 9999;
    }
    .nav a {
        padding: 12px 20px;
        border-radius: 0;
        font-size: 16px;
    }
    .hamburger {
        display: flex;
    }
    .search-box {
        display: none;
    }
}

/* MAIN STORY */
.stories-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.main-story {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    line-height: normal;
}

.main-story img {
    width: 100%;
    height: 750px;
    object-fit: cover;
    display: block;
}

.main-story-text {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 100%;
    padding: 15px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.main-story-text h1 {
    margin: 0 0 5px 0;
    font-size: 22px;
}

.main-story-text a,
.main-story-text a:visited,
.main-story-text a:hover,
.main-story-text a:active {
    color: inherit !important;
    text-decoration: none !important;
    display: block;
}

.story-date {
    font-size: 12px;
    color: #ccc;
}

.main-story-desc {
    font-size: 14px;
}

/* OTHER STORIES */
.other-stories .story-card {
    background: rgba(255,255,255,0.50);
}

.other-stories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.story-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.story-content {
    padding: 10px 12px;
}

.story-content h2 {
    font-size: 16px;
    margin: 0 0 5px 0;
}

.story-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.story-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.story-card a,
.story-card a:visited,
.story-card a:hover,
.story-card a:active {
    text-decoration: none !important;
    color: inherit !important;
}

/* MOBILNA PRILAGODJENOST */
@media (max-width: 768px) {
    .main-story img {
        height: auto;
        border-radius: 6px 6px 0 0;
        max-width: 100%;
        display: block;
    }

    .main-story-text {
        position: relative !important;
        background: #fff;
        color: #000;
        padding: 10px 12px;
        margin: 0;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .main-story-text h1 {
        font-size: 18px;
        line-height: 1.3;
        color: #000;
        margin: 0 0 6px 0;
    }

    .story-date {
        font-size: 11px;
        color: #666;
        margin-bottom: 6px;
        display: block;
    }

    .main-story-desc {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* STORY PAGE */
.story-page {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.story-page h1 {
    font-size: 26px;
    margin-bottom: 5px;
}

.story-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.story-cover img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 20px;
}

.story-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.story-gallery img {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.story-gallery img:hover {
    transform: scale(1.05);
}

.section-title {
    margin-top: 30px;
    font-size: 22px;
    color: #111;
    border-left: 5px solid #ff3c00;
    padding-left: 10px;
    font-weight: bold;
    text-decoration: none;
}

/* FOOTER */
.footer {
    background: #111;
    color: #fff;
    padding: 30px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}

.footer-logo {
    width: 160px;
    margin-bottom: 10px;
}

.footer-desc {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.footer-center h4,
.footer-right h4 {
    color: #ffce00;
    margin-bottom: 10px;
    font-size: 16px;
    text-transform: uppercase;
}

.latest-stories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-stories li {
    margin-bottom: 5px;
}

.latest-stories li a {
    color: #ccc;
    text-decoration: none;
}

.latest-stories li a:hover {
    color: #ffce00;
    text-decoration: underline;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.contact-info li {
    margin-bottom: 5px;
    font-size: 14px;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    margin-right: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffce00;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: #333;
    margin: 20px 0;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #888;
}

.footer-bottom a {
    color: #ffce00;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-left, .footer-center, .footer-right {
        margin: 15px 0;
    }
}
.main-story-img {
    display: block;
}

.main-story-text h1 a {
    color: inherit;
    text-decoration: none;
}

.main-story-text h1 a:hover {
    color: #ff3c00; /* po 탑elji */
    text-decoration: underline; /* ili none */
}

.main-story-text {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}


/* === SHARE STORY === */
.share-story {
    margin-top: 25px;
    text-align: center;
}

.share-story h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* ✅ Specifične boje za svaku mrežu */
.share-btn.fb { background: #3b5998; }
.share-btn.tw { background: #1da1f2; }
.share-btn.ig { background: #e1306c; }
.share-btn.copy { background: #007bff; }

.share-btn.fb:hover { background: #2d4373; }
.share-btn.tw:hover { background: #0d95e8; }
.share-btn.ig:hover { background: #c32aa3; }
.share-btn.copy:hover { background: #0056b3; }


/* === KOMENTARI === */
.comments-section {
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.comments-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.comment-form {
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.comment-form button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.comment-form button:hover {
    background: #0056b3;
}

.comment-success {
    color: green;
    font-size: 14px;
}

.comment-error {
    color: red;
    font-size: 14px;
}

.comment-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 8px;
    position: relative;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5px;
}

.comment-header strong {
    color: #007bff;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.delete-comment-form {
    margin-top: 5px;
    text-align: right;
}

.delete-comment-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.delete-comment-btn:hover {
    background: #b52a38;
}

.no-comments {
    text-align: center;
    color: #666;
    font-size: 14px;
}


/* === REAKCIJE SA IKONAMA === */
.reactions-section {
    margin-top: 20px;
    text-align: center;
}

.reactions-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.reactions-form {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reaction-btn i {
    font-size: 16px;
}

/* Specifične boje */
.reaction-btn.like { background: #007bff; }
.reaction-btn.like:hover { background: #0056b3; }

.reaction-btn.love { background: #e1306c; }
.reaction-btn.love:hover { background: #c32aa3; }

.reaction-btn.funny { background: #ffc107; color: #333; }
.reaction-btn.funny:hover { background: #e0a800; }

.reaction-btn.dislike { background: #6c757d; }
.reaction-btn.dislike:hover { background: #5a6268; }

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

.story-stats {
    background: #f8f9fa;
    padding: 8px 10px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
    text-align: center;
}
/* === ANKETA === */
.poll-section {
    margin-top: 25px;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.poll-section h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.poll-form button {
    display: inline-block;
    margin: 4px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #28a745;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.poll-form button:hover {
    background: #218838;
}

.poll-admin {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.poll-admin h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.poll-admin form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.poll-admin input, .poll-admin select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.poll-admin button {
    padding: 8px 12px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.poll-admin button:hover {
    background: #0056b3;
}


.featured-stories {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}
.featured-stories h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}
.featured-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.featured-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.featured-card:hover {
    transform: translateY(-5px);
}
.featured-card a {
    text-decoration: none;
    color: inherit; /* nema plave boje ni underline */
    display: block;
}
.featured-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.featured-text {
    padding: 10px;
}
.featured-text h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #222;
}
.featured-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}
.featured-meta i {
    color: #555;
    margin-right: 3px;
}
.featured-text p {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

.newsletter {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.newsletter h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}
.newsletter-form {
    display: flex;
    gap: 10px;
}
.newsletter-form input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.newsletter-form button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.newsletter-form button:hover {
    background: #0056b3;
}

/* === DARK MODE === */
body.dark-mode {
    background: #121212;
    color: #e4e4e4;
}

body.dark-mode .header {
    background: #1c1c1c;
    color: #fff;
}

body.dark-mode .nav {
    background: #1c1c1c;
}

body.dark-mode .nav a {
    color: #ccc;
}

body.dark-mode .nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

body.dark-mode .story-card,
body.dark-mode .story-page,
body.dark-mode .comments-section,
body.dark-mode .newsletter,
body.dark-mode .featured-card {
    background: #1e1e1e;
    color: #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

body.dark-mode .story-content,
body.dark-mode .story-desc,
body.dark-mode .featured-text p,
body.dark-mode .comment-text {
    color: #ccc;
}

body.dark-mode .footer {
    background: #1a1a1a;
    color: #ccc;
}

body.dark-mode .footer a {
    color: #ffce00;
}

body.dark-mode .footer-divider {
    background: #333;
}

.dark-mode-toggle {
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.dark-mode-toggle:hover {
    color: #ffce00;
}

  .story-tags {
    margin-top: 15px;
    font-size: 14px;
}

.story-tags strong {
    margin-right: 5px;
    color: #333;
}

.tag-link {
    display: inline-block;
    margin: 3px;
    padding: 4px 8px;
    background: #f0f0f0;
    color: #007bff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.tag-link:hover {
    background: #007bff;
    color: #fff;
}

