/* Simple Gallery Grid Styles */

/* Admin Gallery Preview */
#duyuru-gallery-container,
#haber-gallery-container {
    margin: 15px 0;
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 80px;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.gallery-preview:empty::after {
    content: "Henüz resim eklenmedi. Resim eklemek için 'Resim Ekle' butonuna tıklayın.";
    color: #999;
    font-style: italic;
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    background: white;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.remove-image:hover {
    background: #c82333;
}

#add-duyuru-image,
#add-haber-image {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

#add-duyuru-image:hover,
#add-haber-image:hover {
    background: #005a87;
}

/* Frontend Gallery Styles */
.post-gallery {
    margin: 20px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
    max-width: 100%;
}

.gallery-item-frontend {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
    max-width: 100%;
    width: 100%;
    background: #f8f9fa;
    cursor: pointer;
}

.gallery-item-frontend:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item-frontend img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item-frontend:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-frontend:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-icon {
    color: white;
    font-size: 24px;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .gallery-item-frontend {
        aspect-ratio: 1/1;
    }
} 

/* Full Resolution Gallery Styles */
.gallery-full {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.gallery-full-item {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
}

.gallery-full-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

/* Responsive Full Gallery */
@media (max-width: 768px) {
    .gallery-full {
        gap: 15px;
    }
    
    .gallery-full-item {
        border-radius: 6px;
    }
} 

/* Organized Full Resolution Gallery */
.gallery-organized {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.gallery-organized-item {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.gallery-organized-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-organized-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Simple Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10000;
}

/* Responsive Organized Gallery */
@media (max-width: 768px) {
    .gallery-organized {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-organized-item {
        height: 250px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-organized {
        gap: 12px;
    }
    
    .gallery-organized-item {
        height: 200px;
    }
    
    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
} 

/* Copy Link Button */
.page-share {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.page-share h5 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.copy-link-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.copy-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #495057;
    min-width: 200px;
}

.copy-link-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.copy-link-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: #007bff;
    min-width: 120px;
    justify-content: center;
}

.copy-link-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.copy-link-button:active {
    transform: translateY(0);
}

.copy-link-button i {
    margin-right: 8px;
    font-size: 16px;
}

.copy-success {
    background: #28a745 !important;
}

.copy-success:hover {
    background: #218838 !important;
}

/* Responsive Copy Link */
@media (max-width: 768px) {
    .copy-link-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-link-input {
        width: 100%;
        min-width: auto;
    }
    
    .copy-link-button {
        width: 100%;
    }
} 

/* Date and Copy Link Container */
.date-copy-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 15px;
    gap: 8px;
}

/* Copy Link Button - Bottom Right */
.copy-link-small {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 11px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: #007bff;
    white-space: nowrap;
    min-width: auto;
    height: 24px;
    z-index: 10;
}

.copy-link-small:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.copy-link-small:active {
    transform: translateY(0);
}

.copy-link-small i {
    margin-right: 4px;
    font-size: 10px;
}

.copy-link-small.copy-success {
    background: #28a745 !important;
}

.copy-link-small.copy-success:hover {
    background: #218838 !important;
}

/* Card Container for Positioning */
.home-news-card,
.home-announcement-card {
    position: relative;
}

/* Responsive Small Copy Link */
@media (max-width: 768px) {
    .copy-link-small {
        padding: 3px 6px;
        font-size: 10px;
        height: 20px;
        bottom: 10px;
        right: 10px;
    }
    
    .copy-link-small i {
        font-size: 9px;
        margin-right: 3px;
    }
} 