/* Galeri Sayfası CSS - Ana sayfa ile aynı tasarım */

/* Galeri Genel Düzen */
.gallery-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
    width: 100%;
    max-width: 2000px;
}

/* Masaüstünde sabit sağ sidebar'ı telafi ederek görsel merkezi hizala */
@media (min-width: 1024px) {
    .content.gallery-content {
        padding-right: 100px; /* varsayılan sağ padding (20px) + sidebar genişliği (~80px) */
    }
}

/* Galeri Başlık */
.gallery-content .title-glitch {
    margin-bottom: 30px;
}

/* Galeri Kontrol Butonları Alanı */
.gallery-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.1) 0%, rgba(30, 30, 30, 0.8) 50%, rgba(20, 20, 20, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 111, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

/* Kategori Filtreleme Butonları */
.control-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 8px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn:hover {
    color: var(--highlight-color);
    background: rgba(255, 111, 0, 0.1);
    border-color: rgba(255, 111, 0, 0.3);
    transform: translateY(-2px);
}

.control-btn.active {
    background: var(--highlight-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.5);
    border-color: var(--highlight-color);
}

/* Fotoğraf Ekle Butonu */
.add-photo-btn {
    display: flex;
    align-items: center;
    background: var(--button-background);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-left: 15px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.5);
}

.add-photo-btn:hover {
    background: var(--button-hover-background);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.7);
}

.add-photo-btn i {
    margin-right: 8px;
}

/* Galeri Izgara Düzeni */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Galeri Elemanı */
.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

/* Galeri Kartı Stili */
.gallery-card {
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.1) 0%, rgba(30, 30, 30, 0.8) 50%, rgba(20, 20, 20, 0.9) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 111, 0, 0.1);
    border: 1px solid rgba(255, 111, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight-color), #ff9e42, var(--highlight-color));
    border-radius: 20px 20px 0 0;
}

.gallery-card:hover {
    box-shadow: 0 20px 60px rgba(255, 111, 0, 0.3), 0 0 40px rgba(255, 111, 0, 0.2);
    border-color: rgba(255, 111, 0, 0.4);
}

/* Kart İçindeki Resim Alanı */
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-image img {
    transform: scale(1.05);
}

/* Kart Overlay (Üzerine Gelince) */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

/* Kart Üzerindeki Butonlar */
.card-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 16px;
}

.action-btn:hover {
    background: var(--highlight-color);
    transform: scale(1.1);
    border-color: var(--highlight-color);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.5);
}

.like-btn {
    font-size: 12px;
    width: auto;
    padding: 0 15px;
    border-radius: 25px;
    min-width: 80px;
}

.like-btn i {
    margin-right: 5px;
}

/* Kart İçerik Alanı */
.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: white;
    font-weight: 600;
}

.card-text {
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.card-date {
    display: flex;
    align-items: center;
}

.card-date i {
    margin-right: 5px;
}

/* Kategori Etiketleri */
.card-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.tech-tag {
    background: rgba(0, 100, 255, 0.2);
    color: #00d9ff;
    border: 1px solid rgba(0, 100, 255, 0.3);
}

.gaming-tag {
    background: rgba(255, 0, 128, 0.2);
    color: #ff0080;
    border: 1px solid rgba(255, 0, 128, 0.3);
}

.personal-tag {
    background: rgba(0, 200, 100, 0.2);
    color: #00c864;
    border: 1px solid rgba(0, 200, 100, 0.3);
}

/* Daha Fazla Butonu */
.load-more {
    margin-top: 40px;
    text-align: center;
}

.load-more-btn {
    background: transparent;
    color: white;
    border: 2px solid var(--highlight-color);
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.load-more-btn:hover {
    background: var(--highlight-color);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.6);
    transform: translateY(-3px);
}

.load-more-btn span {
    margin-right: 10px;
}

/* Fotoğraf Görüntüleme Modal */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(15px);
}

.modal-container {
    display: flex;
    max-width: 1200px;
    width: 90%;
    height: 80%;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.1) 0%, rgba(30, 30, 30, 0.95) 50%, rgba(20, 20, 20, 0.98) 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 111, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close:hover {
    background: var(--highlight-color);
    transform: rotate(90deg);
    border-color: var(--highlight-color);
}

.modal-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content {
    width: 350px;
    height: 100%;
    padding: 30px;
    overflow-y: auto;
    background: rgba(15, 15, 20, 0.95);
    border-left: 1px solid rgba(255, 111, 0, 0.2);
}

.modal-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.modal-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-actions {
    display: flex;
    margin-bottom: 30px;
    gap: 15px;
}

.modal-like-btn, .modal-share-btn {
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modal-like-btn:hover, .modal-share-btn:hover {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
    transform: translateY(-2px);
}

.modal-like-btn i, .modal-share-btn i {
    margin-right: 8px;
}

/* Yorumlar Alanı */
.modal-comments {
    margin-top: 20px;
}

.modal-comments h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.comments-list {
    margin-bottom: 20px;
}

.comment {
    display: flex;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

.comment-author {
    font-weight: 600;
    color: white;
}

.comment-time {
    color: rgba(255, 255, 255, 0.5);
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-like, .comment-reply {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.comment-like:hover, .comment-reply:hover {
    color: var(--highlight-color);
}

.comment-like i {
    margin-right: 5px;
}

/* Yorum Ekleme Alanı */
.add-comment {
    display: flex;
}

.comment-input-container {
    flex: 1;
    position: relative;
}

.comment-input {
    width: 100%;
    height: 45px;
    padding: 12px 50px 12px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    resize: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.comment-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--highlight-color);
}

.comment-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--highlight-color);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit:hover {
    transform: scale(1.1);
    background: #ff9e42;
}

/* Fotoğraf Ekle Modal */
.add-photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.add-photo-modal .modal-container {
    width: 500px;
    max-width: 90%;
    height: auto;
    padding: 30px;
}

.add-photo-modal h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    font-weight: 600;
}

.upload-preview {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

#uploadPreviewContainer {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
}

#uploadPreviewContainer:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--highlight-color);
}

#uploadPreviewContainer i {
    font-size: 40px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.4);
}

#previewImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(255, 111, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.btn-cancel, .btn-submit {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-submit {
    background: var(--highlight-color);
    color: white;
}

.btn-submit:hover {
    background: #ff9e42;
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.6);
    transform: translateY(-2px);
}

/* Paylaş Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.share-modal .modal-container {
    width: 400px;
    max-width: 90%;
    height: auto;
    padding: 30px;
}

.share-modal h2 {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    color: white;
    font-weight: 600;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.share-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-option:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.share-option i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-size: 16px;
}

.share-option.twitter i { background: #1da1f2; }
.share-option.facebook i { background: #1877f2; }
.share-option.instagram i { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-option.whatsapp i { background: #25d366; }
.share-option.copy-link i { background: #6c757d; }

.share-option.twitter:hover { background: rgba(29, 161, 242, 0.2); }
.share-option.facebook:hover { background: rgba(24, 119, 242, 0.2); }
.share-option.instagram:hover { background: rgba(220, 39, 67, 0.2); }
.share-option.whatsapp:hover { background: rgba(37, 211, 102, 0.2); }
.share-option.copy-link:hover { background: rgba(108, 117, 125, 0.2); }

/* Toast Bildirim */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.1) 0%, rgba(30, 30, 30, 0.9) 50%, rgba(20, 20, 20, 0.95) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 111, 0, 0.2);
    min-width: 300px;
}

.toast-icon {
    margin-right: 10px;
    color: #10B981;
    font-size: 18px;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.toast-close:hover {
    color: white;
}

/* Mobil Uyumluluğu */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .gallery-controls {
        padding: 10px;
    }
    
    .control-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .add-photo-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .modal-container {
        flex-direction: column;
        height: 90%;
    }
    
    .modal-image {
        height: 50%;
    }
    
    .modal-content {
        width: 100%;
        height: 50%;
        border-left: none;
        border-top: 1px solid rgba(255, 111, 0, 0.2);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .control-btn {
        width: 100%;
        margin: 0;
    }
    
    .add-photo-btn {
        width: 100%;
        margin: 10px 0 0 0;
        justify-content: center;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
}

/* Fare Hareketleri */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overscroll-behavior-y: contain;
}