/* SINGLE STORY PAGE DESIGN (zgodbe.php) */

/* Override/Reuse existing .story-card styles for the single page container */
.article-container-single {
    max-width: 500px; /* Reduced from 800px to match .restaurant-card width on desktop */
    margin: 0 auto;
    /* Ensure it behaves like a card but centered */
}

/* Adjust image height for single view if needed, or inherit from .story-img */
.article-container-single .story-img {
    height: auto; /* Allow full height or keep it fixed? Let's use max-height to keep it sharp */
    max-height: 400px; /* Taller than the list view preview */
    object-fit: cover;
}

.article-header {
    margin-bottom: 15px; /* Reduced from 20px (Space Line to Content) */
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px; /* Reduced from 20px (Space Line to Content) */
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow tags to wrap */
    gap: 8px; /* Reduced from 10px */
    margin-bottom: 0; /* Reduced from 15px (Space Tag to Line) */
}

.meta-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-title {
    font-size: 2rem; /* Reduced from 2.5rem */
    font-weight: 800;
    line-height: 1.3; /* Adjusted to 1.3 for better spacing */
    margin-bottom: 10px; /* Reduced spacing Picture to Title (via title margin) */
    color: #0f1712;
    text-transform: none !important; /* Force NO transform */
    margin-top: -10px; /* Pull title closer to image */
}

.article-subtitle {
    font-size: 13px; /* Reduced from 1.25rem (approx 20px) to match card preview subtitle */
    color: var(--text-muted);
    font-weight: 600; /* Increased weight for clarity at small size */
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto 10px auto; /* Reduced from 20px to 10px to match Title spacing */
    text-transform: uppercase !important; /* Force UPPERCASE */
    letter-spacing: 0.5px; /* Add slight spacing for uppercase text */
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2C2C2C;
}

.article-content p {
    margin-bottom: 25px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Reset margins for mobile to respect container padding */
    .article-container-single {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
        
        /* Restore Card Shape */
        border-radius: 24px;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--section-color);
        background: #ffffff;
    }
    
    /* Restore rounded top corners for image */
    .article-container-single .story-img {
        border-radius: 24px 24px 0 0;
    }

    .article-title {
        font-size: 1.8rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
}

/* Extracted from zgodbe.php */
.story-tags-scroll {
    display: flex;
    gap: 6px;
    flex-wrap: wrap; /* Wrap on all devices */
    overflow: visible;
    max-height: none;
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
.story-tags-scroll::-webkit-scrollbar { display: none; }

.story-interactions {
    justify-content: center;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}
