/* Account Page Specific Styles */

#account-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-state .loader {
    margin: 0 auto 1rem;
}

.auth-prompt {
    text-align: center;
    padding: 4rem 2rem;
}

.auth-prompt h2 {
    color: #00f3ff;
    margin-bottom: 1rem;
}

.auth-prompt p {
    margin-bottom: 2rem;
    color: #ccc;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 1px solid #00f3ff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 243, 255, 0.3);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #00f3ff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

/* Quota Section */
.quota-section {
    margin-bottom: 3rem;
}

.quota-section h3 {
    color: #00f3ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.quota-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.quota-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f3ff, #00c3ff);
    transition: width 0.5s ease;
    border-radius: 15px;
}

.quota-text {
    margin-top: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

/* Upload Section */
.upload-section {
    margin-bottom: 3rem;
}

.upload-section h2 {
    color: #00f3ff;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.drop-zone {
    border: 3px dashed rgba(0, 243, 255, 0.5);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 243, 255, 0.05);
}

.drop-zone:hover {
    border-color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
}

.drop-zone.drag-over {
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.15);
    transform: scale(1.02);
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    color: #00f3ff;
    margin-bottom: 1rem;
}

.drop-zone p {
    color: #ccc;
    font-size: 1.1rem;
}

/* Upload Progress */
.upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 8px;
}

#upload-status {
    color: #00f3ff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f3ff, #00ff88);
    transition: width 0.3s ease;
}

/* Gallery Section */
.gallery-section h2 {
    color: #00f3ff;
    margin-bottom: 1.5rem;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-header h2 {
    margin: 0;
}

.gallery-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#select-mode-btn.active {
    background: #00f3ff;
    color: #1a1a2e;
}

.danger-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.danger-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: #dc2626;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.photo-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 243, 255, 0.4);
    border-color: #00f3ff;
}

.photo-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.photo-info {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
}

.photo-name {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-size {
    color: #00f3ff;
    font-size: 0.75rem;
}

.delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.photo-card:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.photo-checkbox {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    accent-color: #00f3ff;
}

.photo-card.select-mode .photo-checkbox {
    opacity: 1;
}

.photo-card.selected {
    outline: 3px solid #00f3ff;
    transform: scale(0.98);
}

.photo-card.select-mode {
    cursor: pointer;
}

.photo-card.select-mode .photo-thumbnail {
    cursor: pointer;
}

.no-photos-msg {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-size: 1.1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #00f3ff;
    max-width: 500px;
    text-align: center;
}

.modal-content h2 {
    color: #00f3ff;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #ccc;
    margin-bottom: 2rem;
}

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

/* Preview Modal */
.preview-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 1rem;
    position: relative;
}

.preview-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1;
}

.close-modal:hover {
    color: #00f3ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    #account-container {
        padding: 1rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .photo-thumbnail {
        height: 150px;
    }

    .drop-zone {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}