body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: bold;
}

.post-title {
    color: #007bff;
    text-decoration: none;
}

.post-title:hover {
    text-decoration: underline;
}

.category-badge {
    font-size: 0.75em;
}

.user-info {
    font-size: 0.875rem;
    color: #6c757d;
}

.file-preview {
    max-width: 200px;
    max-height: 200px;
    margin: 5px;
}

.btn-group-sm > .btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

footer {
    background-color: #e9ecef !important;
    margin-top: auto;
}

.navbar-brand {
    font-weight: bold;
}

.table th {
    border-top: none;
}

/* İçerik resimleri için stiller - küçük boyutta göster */
.content-image {
    max-width: 300px;
    max-height: 300px;
    height: auto;
    cursor: pointer;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

/* Video için stiller */
.content-video {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* Resim modal stilleri */
.modal-image {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-image-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    transform-origin: center center;
    transition: transform 0.2s ease;
    cursor: move;
}

.modal-image-content.zoomed {
    cursor: grab;
}

.modal-image-content.zoomed:active {
    cursor: grabbing;
}

.close-image {
    position: absolute;
    top: 50px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10001;
}

.close-image:hover,
.close-image:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Zoom kontrolleri */
.zoom-controls {
    position: absolute;
    top: 50px;
    left: 35px;
    z-index: 10001;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.zoom-controls button {
    background: white;
    border: none;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 3px;
}

.zoom-controls button:hover {
    background: #f0f0f0;
}

.zoom-level {
    color: white;
    margin: 0 10px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

/* Resimlere cursor ekle */
img.img-fluid {
    cursor: pointer;
}