/* Scootercam Sunset Gallery Styles */

.scootercam-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Gallery Header */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #1e293b;
}

.gallery-header p {
    color: #64748b;
    font-size: 1.1em;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #f1f5f9;
    overflow: hidden;
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-item:hover .play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-icon {
    font-size: 48px;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .play-icon {
    opacity: 1;
    transform: scale(1);
}

.item-info {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-info .date {
    font-weight: 600;
    color: #1e293b;
    font-size: 1em;
}

.cameras {
    display: flex;
    gap: 8px;
}

.camera-icon {
    font-size: 0.9em;
    color: #64748b;
}

/* Video Player Section */
.gallery-player {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.player-header h2 {
    font-size: 1.8em;
    margin: 0;
    color: #1e293b;
}

.camera-badge {
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-container video {
    width: 100%;
    display: block;
}

.camera-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.video-info {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #475569;
    font-size: 0.95em;
}

.back-to-gallery {
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: #cbd5e1;
    transform: translateY(-1px);
}

.btn-active {
    background: #3b82f6;
    color: white;
}

.btn-active:hover {
    background: #2563eb;
}

/* Pagination */
.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.gallery-pagination a,
.gallery-pagination span {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s ease;
}

.gallery-pagination a:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.gallery-pagination .current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    font-weight: 600;
}

/* Gallery Info */
.gallery-info {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.gallery-info h3 {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.3em;
}

.gallery-info p {
    color: #475569;
    line-height: 1.6;
}

/* Error Messages */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Social Sharing */
.social-sharing {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.share-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 1em;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #0c63d4;
    transform: translateY(-2px);
}

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.share-instagram:hover {
    background: linear-gradient(45deg, #d87b2a 0%, #d15a2f 25%, #c41f35 50%, #b31b58 75%, #a3147a 100%);
    transform: translateY(-2px);
}

.share-twitter {
    background: #000000;
    color: white;
}

.share-twitter:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

.share-linkedin {
    background: #0077b5;
    color: white;
}

.share-linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
}

.share-email {
    background: #64748b;
    color: white;
}

.share-email:hover {
    background: #475569;
    transform: translateY(-2px);
}

.share-copy {
    background: #e2e8f0;
    color: #1e293b;
}

.share-copy:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

.share-copy.copied {
    background: #10b981;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .player-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .camera-toggle {
        flex-direction: column;
    }
    
    .camera-toggle .btn {
        width: 100%;
        text-align: center;
    }
    
    .gallery-pagination {
        font-size: 0.9em;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .scootercam-gallery {
        padding: 12px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-player {
        padding: 16px;
    }
    
    .player-header h2 {
        font-size: 1.4em;
    }
}