/* Modern Event Album Styles */

:root {
    /* Romantik & Zarif Altın - Gül Kurusu geçişi */
    --primary-gradient: linear-gradient(135deg, #f6d5c6 0%, #e4a1b6 100%);

    /* Soft Pembe & Şampanya */
    --secondary-gradient: linear-gradient(135deg, #fce3ec 0%, #f7c8b0 100%);

    /* Lüks Mat Siyah & Altın (Akşam düğünü hissi) */
    --dark-gradient: linear-gradient(135deg, #2b2b2b 0%, #5f4b3b 100%);

    /* Krem – Şampanya – Rose Gold */
    --light-gradient: linear-gradient(135deg, #fff7ef 0%, #f8ded1 100%);

    /* Daha yumuşak gölge */
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 16px 35px rgba(0, 0, 0, 0.13);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    background: var(--primary-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    background: var(--primary-gradient);
    color: white !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(1.5rem, 5vw + 1rem, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-btn {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    z-index: 1;
}

.hero-btn.shrinking {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

/* Main Container */
.main-container {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(10px);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 300px);
    padding: 3rem 0;
}

/* Media Filters */
.media-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s ease;
    z-index: 0;
}

.filter-btn i,
.filter-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover i,
.filter-btn:hover span {
    color: white;
}

.filter-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(246, 213, 198, 0.4);
}

.filter-btn.active::before {
    left: 0;
}

.filter-btn.active i,
.filter-btn.active span {
    color: white;
}

.filter-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .media-filters {
        padding: 1.5rem 0.5rem;
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .filter-btn span {
        display: none;
    }
    
    .filter-btn i {
        font-size: 1.2rem;
    }
}

/* Media Grid - Masonry Style */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }
}

/* Media Card */
.media-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out both;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.media-card:nth-child(1) { animation-delay: 0.1s; }
.media-card:nth-child(2) { animation-delay: 0.2s; }
.media-card:nth-child(3) { animation-delay: 0.3s; }
.media-card:nth-child(4) { animation-delay: 0.4s; }
.media-card:nth-child(5) { animation-delay: 0.5s; }
.media-card:nth-child(6) { animation-delay: 0.6s; }

.media-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.media-card.no-hover-temp:hover {
    transform: none !important;
    box-shadow: var(--card-shadow) !important;
}

/* Butona tıklandığında kartın hover efektini geçici olarak devre dışı bırak */
.media-card.no-hover-temp:hover img,
.media-card.no-hover-temp:hover .video-container video {
    transform: none !important;
}

.media-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f0f0f0;
    z-index: 1;
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover img {
    transform: scale(1.1);
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover .video-container video {
    transform: scale(1.1);
}

.media-card:hover .media-image-wrapper img {
    transform: scale(1.1);
}

.video-controls {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.75rem;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
}

.video-control-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.video-control-btn:active {
    transform: translateY(0) scale(1.05);
}

.media-actions-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    opacity: 0.9;
    pointer-events: none;
}

.media-actions-top .btn-action {
    pointer-events: auto;
}

.media-actions-top .btn-action {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.media-actions-top .btn-action:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    opacity: 1;
}

.media-card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    margin-top: auto;
    border-radius: 0 0 20px 20px;
    width: 100%;
}

.media-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.media-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: flex-end;
    text-align: right;
}

.media-card-title {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    justify-content: flex-end;
}

.media-card-title i {
    font-size: 1.2rem;
    color: #667eea;
}

.media-card-date {
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.media-card-date i {
    font-size: 1rem;
    color: #888;
}

/* Buttons */
.btn-modern {
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-like {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-like:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.6);
}

.btn-like.liked {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    /* Animasyon JavaScript ile kontrol ediliyor */
}

.btn-like .like-count {
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn-like i {
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn-action {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #999;
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #666;
}

/* Upload Page */
.upload-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.upload-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.upload-card h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.upload-limit-info {
    background: rgba(102, 126, 234, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#displayNameCounter {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

#displayNameCharCount {
    font-weight: 600;
}

.limit-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
}

.limit-info-item i {
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.limit-info-item > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.limit-info-item strong {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

.limit-info-item span {
    font-size: 0.85rem;
    color: #666;
}

.limit-info-item small {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.1rem;
}

.limit-info-item .text-success {
    color: #28a745;
}

.limit-info-item .text-danger {
    color: #dc3545;
}

/* File Input Styling */
.file-input-wrapper {
    position: relative;
    margin: 2rem 0;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: block;
    padding: 3rem 2rem;
    border: 3px dashed #667eea;
    border-radius: 15px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-input-label:hover {
    border-color: #764ba2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: scale(1.02);
}

.file-input-label[style*="opacity: 0.5"] {
    border-color: #ccc !important;
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.05) 0%, rgba(220, 220, 220, 0.05) 100%) !important;
    cursor: not-allowed !important;
}

.file-input-label[style*="opacity: 0.5"]:hover {
    transform: none !important;
}

.file-input-label i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

/* Preview Grid */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2.5rem;
    }
}

.preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.preview-item video {
    background: transparent;
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preview-delete-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.preview-file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.preview-item:has(.video-crop-warning-external) .preview-file-name {
    bottom: 1.5rem; /* Uyarı için yer aç */
}

.video-preview-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
}

.video-preview-container video {
    background: transparent;
    display: block;
}

.video-crop-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0);
    padding: 1.5rem;
    border-radius: 0 0 10px 10px;
    z-index: 5;
}

.video-crop-warning-external {
    background: rgba(220, 53, 69, 0.15);
    border-left: 3px solid #dc3545;
    border-radius: 0 0 4px 4px;
    padding: 0.35rem 0.5rem;
    color: #dc3545;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    backdrop-filter: blur(2px);
}

.video-crop-warning-external i {
    font-size: 1rem;
    flex-shrink: 0;
}

.video-crop-warning-external span {
    flex: 1;
}

.video-crop-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.crop-timeline-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.crop-timeline-info strong {
    color: #ffc107;
    font-weight: 600;
}

.crop-timeline-wrapper {
    position: relative;
    width: 100%;
}

.crop-timeline {
    position: relative;
    width: 100%;
    height: 50px;
    cursor: pointer;
}

.crop-timeline-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transform: translateY(-50%);
}

.crop-timeline-selection {
    position: absolute;
    top: 50%;
    height: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.crop-timeline-handle {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    cursor: grab;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.crop-timeline-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.crop-timeline-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.crop-handle-start {
    border-color: #28a745;
}

.crop-handle-end {
    border-color: #dc3545;
}

.crop-timeline-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    padding: 0.25rem 0;
}

.video-preview-container {
    position: relative;
}

.video-preview-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.video-preview-container:hover::after {
    opacity: 1;
}

.video-preview-container::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 4;
}

.video-preview-container:hover::before {
    opacity: 1;
}

/* Progress Bar */
.progress-modern {
    height: 8px;
    border-radius: 10px;
    background: #f0f0f0;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-modern {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    will-change: transform, opacity;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

@keyframes slideInRight {
    0% {
        transform: translateX(120%) scale(0.95);
        opacity: 0;
    }
    60% {
        transform: translateX(-5%) scale(1.02);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(102, 126, 234, 0.1);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.loading-indicator .spinner {
    margin: 0 auto 1rem;
}

.loading-indicator p {
    font-size: 1rem;
    color: #999;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: clamp(1.2rem, 6vw + 0.5rem, 2.5rem);
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-card {
        padding: 1.5rem;
    }

    /* Mobilde video kontrollerini her zaman göster */
    .video-controls {
        opacity: 1 !important;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Fullscreen Media Viewer (YouTube Shorts Style) */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: none;
    overflow: hidden;
    touch-action: pan-y;
}

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

.fullscreen-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.fullscreen-media-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.fullscreen-media-item {
    width: 100%;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
}

.fullscreen-media-item img,
.fullscreen-media-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transition: transform 0.3s ease;
}

.fullscreen-media-item img {
    cursor: grab;
    touch-action: pan-x pan-y pinch-zoom;
}

.fullscreen-media-item img:active {
    cursor: grabbing;
}

.fullscreen-media-item img.zoomed {
    cursor: grab;
    transition: transform 0.1s ease-out;
}

.fullscreen-media-item video {
    cursor: pointer;
}

.fullscreen-close {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + 70px); /* Footer yüksekliği için boşluk */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.fullscreen-media-info {
    position: fixed;
    right: 1.5rem;
    bottom: calc(1.5rem + 70px + 60px); /* Footer + progress bar yüksekliği */
    z-index: 10001;
    pointer-events: auto;
    max-width: 300px;
}

.fullscreen-info-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.fullscreen-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fullscreen-author i {
    font-size: 1.2rem;
}

.fullscreen-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.fullscreen-like-btn,
.fullscreen-share-btn,
.fullscreen-download-btn {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    text-decoration: none;
    position: relative;
}

.fullscreen-like-btn:hover,
.fullscreen-share-btn:hover,
.fullscreen-download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-like-btn.liked {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
}

.fullscreen-like-btn.liked i {
    color: #ff6b6b;
}

.fullscreen-like-count {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.2rem;
    line-height: 1;
}

.fullscreen-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .fullscreen-media-info {
        right: 1rem;
        bottom: calc(1rem + 70px + 60px);
        max-width: 250px;
    }
    
    .fullscreen-like-btn,
    .fullscreen-share-btn,
    .fullscreen-download-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .fullscreen-author {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

.fullscreen-mute-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    pointer-events: auto;
}

.fullscreen-mute-btn.visible {
    display: flex;
}

.fullscreen-mute-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-progress-container {
    width: calc(100% - 3rem);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    pointer-events: auto;
    padding: 0.5rem 0;
    display: none;
}

.fullscreen-progress-container.visible {
    display: block;
}

.fullscreen-progress {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.fullscreen-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.fullscreen-progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.fullscreen-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.fullscreen-progress::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.fullscreen-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: white;
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    transition: width 0.1s linear;
}

.fullscreen-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.fullscreen-play-overlay.show {
    display: flex;
    animation: playPulse 0.4s ease;
}

@keyframes playPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Hide body scroll when fullscreen is active */
body.fullscreen-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-btn.animating {
    display: flex;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.floating-btn.show {
    display: flex;
    opacity: 1;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.floating-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .floating-btn.show {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Privacy Option Card */
.privacy-option-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.privacy-option-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.privacy-option-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.privacy-option-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.privacy-option-info i {
    font-size: 1.75rem;
    color: #667eea;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.privacy-option-label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    cursor: pointer;
    line-height: 1.4;
}

.privacy-option-desc {
    display: block;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: all 0.3s ease;
    border-radius: 32px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked:hover + .toggle-slider {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.25);
}

.toggle-switch:active .toggle-slider:before {
    transform: scale(0.95);
}

.toggle-switch input:checked:active + .toggle-slider:before {
    transform: translateX(24px) scale(0.95);
}

@media (max-width: 768px) {
    .privacy-option-card {
        padding: 1.25rem;
    }
    
    .privacy-option-header {
        gap: 1rem;
    }
    
    .privacy-option-info i {
        font-size: 1.5rem;
    }
    
    .privacy-option-label {
        font-size: 0.95rem;
    }
    
    .privacy-option-desc {
        font-size: 0.8rem;
    }
    
    .toggle-switch {
        width: 50px;
        height: 28px;
    }
    
    .toggle-slider:before {
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(20px);
    }
}

/* My Media Section */
.my-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.my-media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.my-media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.my-media-item img,
.my-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.my-media-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
}

.my-media-item:hover .my-media-delete-btn {
    opacity: 1;
}

.my-media-delete-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.my-media-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 0.85rem;
}

.my-media-item-info .media-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.my-media-item-info .media-date {
    font-size: 0.75rem;
    opacity: 0.9;
}

.my-media-item-info .admin-only-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.my-media-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
}

.my-media-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.my-media-empty p {
    font-size: 1.1rem;
    color: #666;
}

@media (max-width: 768px) {
    .my-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .my-media-item {
        max-width: 100%;
        width: 100%;
    }
    
    .my-media-delete-btn {
        opacity: 1;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .upload-card {
        padding: 1.5rem;
    }
}

/* Delete Confirmation Modal */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.delete-modal.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.delete-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.delete-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    will-change: transform, opacity;
}

.delete-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.delete-modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.delete-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.delete-modal-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.delete-modal-message strong {
    color: #dc3545;
    font-weight: 600;
}

.delete-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.delete-modal-btn {
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.delete-modal-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.delete-modal-btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delete-modal-btn-confirm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.delete-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.delete-modal-btn-confirm:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .delete-modal-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    .delete-modal-icon {
        width: 70px;
        height: 70px;
    }
    
    .delete-modal-icon i {
        font-size: 2rem;
    }
    
    .delete-modal-title {
        font-size: 1.3rem;
    }
    
    .delete-modal-message {
        font-size: 0.9rem;
    }
    
    .delete-modal-actions {
        flex-direction: column;
    }
    
    .delete-modal-btn {
        width: 100%;
    }
}
