/* Post Cards */
.post-card {
    background: #2a2a2a;
    border: 1px solid #444;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
    overflow: hidden;
    border-radius: 4px;
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    border-color: #cc0000;
    transform: scale(1.02);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-card-content {
    padding: 15px;
}

.post-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Hero Post Card */
.hero-post {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.hero-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
}

.hero-post-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    width: 100%;
}

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

/* Post Detail Page Styles - New Layout */
.post-hero-wrapper {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.post-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-hero-image-container {
    position: relative;
    max-width: 400px;
    max-height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-hero-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
}

.post-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #cc0000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 8px 16px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Post Content Layout */
.post-content-wrapper {
    padding: 60px 0;
    background: #1a1a1a;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.post-main-content {
    min-width: 0; /* Prevent overflow */
}

.post-title {
    font-size: 32px;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 30px;
}

.post-description {
    font-size: 18px;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 40px;
    white-space: pre-wrap;
}

.post-social-links {
    padding: 30px 0;
    border-top: 1px solid #444;
}

.social-links-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.social-link-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-link-button:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-2px);
}

.social-link-button i {
    font-size: 16px;
}

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

/* Related Posts Section */
.related-posts-section {
    padding: 60px 0;
    background: #2a2a2a;
    border-top: 1px solid #333;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post-card {
    background: #1a1a1a;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    border-color: #cc0000;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-post-image {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: #2a2a2a;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 16px;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Legacy Post Styles (for compatibility) */
.post-hero {
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.post-hero-title {
    position: relative;
    z-index: 1;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
}

.post-hero-title h1 {
    margin: 0;
    color: #ffffff;
}

.post-content {
    padding: 60px 0;
}

.social-link {
    display: inline-block;
    padding: 12px 24px;
    background: #1a1a1a;
    border: 1px solid #555;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.social-link:hover {
    background: #cc0000;
    border-color: #cc0000;
}

/* Responsive Design for Post Page */
@media (max-width: 1199px) {
    .post-layout {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .post-hero-wrapper {
        height: 400px;
        padding: 20px;
    }

    .post-hero-image-container {
        max-width: 300px;
        max-height: 250px;
    }

    .post-category-badge {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 6px 12px;
    }

    .post-content-wrapper {
        padding: 40px 0;
    }

    .post-title {
        font-size: 26px;
    }

    .post-description {
        font-size: 16px;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-post-image {
        height: 200px;
    }
}

/* Admin Content Cards */
.admin-item-card {
    background: #2a2a2a;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 4px;
    position: relative;
}

.admin-item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.admin-item-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-item-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.admin-item-actions {
    display: flex;
    gap: 10px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: bold;
}

.badge-draft {
    background: #666;
    color: #fff;
}

.badge-published {
    background: #4caf50;
    color: #fff;
}

.badge-archived {
    background: #999;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    border: 1px solid #444;
    animation: scaleIn 0.3s ease;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    margin: 0;
    color: #fff;
}

.modal-body {
    margin-bottom: 25px;
    color: #ccc;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: ".";
    }
    40% {
        content: "..";
    }
    60%, 100% {
        content: "...";
    }
}

/* User Menu */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-toggle {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.user-menu-toggle:hover {
    border-color: #cc0000;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.user-menu.active .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.user-menu-dropdown a:hover {
    background: #2a2a2a;
}

/* Content Menu (Sadržaj Dropdown) */
.content-menu {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.content-menu-toggle {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    font-size: 16px;
    line-height: 1.5;
}

.content-menu-toggle:hover {
    border-color: #cc0000;
}

/* Nav Link Button (O nama, Kontakt) */
.nav-link-button {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    line-height: 1.5;
    vertical-align: middle;
}

.nav-link-button:hover {
    border-color: #cc0000;
    color: #fff;
}

/* Support Button (Special styling) */
.nav-link-button.support-button {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
    font-weight: bold;
}

.nav-link-button.support-button:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
    transform: translateY(-2px);
}

.nav-link-button.support-button i {
    margin-right: 5px;
}

/* Support Banner */
.support-banner {
    background: linear-gradient(135deg, #cc0000 0%, #aa0000 100%);
    padding: 20px;
    border-top: 2px solid #990000;
}

.support-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.support-banner-content i {
    font-size: 24px;
    color: #fff;
}

.support-banner-content span {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.support-banner-button {
    background: #fff;
    color: #cc0000;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.support-banner-button:hover {
    background: #f0f0f0;
    color: #aa0000;
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .support-banner {
        padding: 15px;
    }

    .support-banner-content {
        gap: 10px;
        text-align: center;
    }

    .support-banner-content span {
        font-size: 14px;
        flex: 1 1 100%;
    }

    .support-banner-button {
        padding: 8px 20px;
        font-size: 14px;
    }
}

.content-menu-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 1000;
}

.content-menu.active .content-menu-dropdown {
    display: block;
}

.content-menu-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.content-menu-dropdown a:hover {
    background: #2a2a2a;
    color: #cc0000;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: #cc0000;
    border-color: #cc0000;
}

.pagination .active {
    background: #cc0000;
    border-color: #cc0000;
    font-weight: bold;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #ccc;
}

.empty-state p {
    font-size: 14px;
}

/* Outfit Card (for outfiti.php) */
.outfit-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.outfit-card:hover {
    border-color: #cc0000;
    transform: scale(1.02);
}

.outfit-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.outfit-card-content {
    padding: 15px;
}

.outfit-card-artist {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.outfit-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.outfit-card-price {
    font-size: 16px;
    color: #cc0000;
    font-weight: bold;
}

/* Meme Card */
.meme-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.meme-card:hover {
    border-color: #cc0000;
    transform: scale(1.02);
}

.meme-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Quote Card */
.quote-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.quote-card:hover {
    border-color: #cc0000;
    transform: scale(1.02);
}

.quote-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #cc0000;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #cc0000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 767px) {
    .lightbox-close {
        right: 20px;
        font-size: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 10px;
    }
}
