.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

/* Gallery Items */
.gallery-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.gallery-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.05);
}

.gallery-item-content {
    padding: 1.5rem;
}

.gallery-item-content h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.gallery-item-content p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.gallery-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.gallery-item-meta .creators {
    font-weight: 500;
}

.gallery-item-meta .date {
    opacity: 0.8;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.gallery-modal.active {
    display: block;
}

.gallery-modal-content {
    max-width: 1000px;
    margin: 2rem auto;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gallery-modal-close:hover {
    color: var(--accent-color);
}

.gallery-modal-image {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    margin: 1rem 0;
    border-radius: 4px;
}

.gallery-modal-main-description {
    color: var(--text-primary);
    margin: 1rem 0;
    line-height: 1.6;
}

.gallery-subimages-title {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.gallery-modal-subimages-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-modal-subimage-wrapper {
    position: relative;
    cursor: pointer;
}

.gallery-modal-subimage-wrapper img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-modal-subimage-wrapper:hover img {
    transform: scale(1.05);
}

.gallery-modal-subimage-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    padding: 0.5rem;
    font-size: 0.8rem;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.history {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.history h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.history p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.creators-modal-section {
    margin-top: 2rem;
}

.creators-modal-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.modal-gallery-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

/* Add Gallery Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

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

.modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-form {
    padding: 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
    background: var(--bg-primary);
}

.file-upload-area:hover {
    border-color: var(--accent-color);
}

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

.upload-placeholder {
    color: var(--text-secondary);
}

.upload-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.upload-placeholder p {
    margin: 0;
    font-size: 1rem;
}

.file-preview {
    position: relative;
    margin-top: 1rem;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    object-fit: cover;
}

.remove-file {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-file:hover {
    background: #e74c3c;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Admin Gallery Styles */
.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

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

.form-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.submission-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.submission-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.status-approved {
    background: #27ae60;
    color: white;
}

.status-rejected {
    background: #e74c3c;
    color: white;
}

.submission-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.submission-image {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.submission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.submission-details p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    line-height: 1.5;
}

.submission-details strong {
    color: var(--text-primary);
}

.submission-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

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

.empty-state h3 {
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
}

.empty-state p {
    margin: 0;
    opacity: 0.8;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.submission-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.submission-modal-image {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.submission-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.submission-modal-details h3 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.submission-modal-details p {
    color: var(--text-secondary);
    margin: 0.75rem 0;
    line-height: 1.5;
}

.submission-modal-details strong {
    color: var(--text-primary);
}

.submission-history {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.submission-history h4 {
    color: var(--accent-color);
    margin: 0 0 0.75rem 0;
}

.submission-history p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    border-left: 4px solid var(--accent-color);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #27ae60;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-info {
    border-left-color: #3498db;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #27ae60;
}

.notification-error .notification-content i {
    color: #e74c3c;
}

.notification-info .notification-content i {
    color: #3498db;
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: var(--text-primary);
}

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

    .gallery-modal-content {
        margin: 1rem;
        padding: 1rem;
    }

    .gallery-modal-image {
        max-height: 400px;
    }

    .gallery-modal-subimages-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-form {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .admin-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .submission-content {
        grid-template-columns: 1fr;
    }

    .submission-image {
        width: 100%;
        height: 200px;
    }

    .submission-modal-content {
        grid-template-columns: 1fr;
    }

    .submission-modal-image {
        max-height: 300px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
} 