/* Showcase Styles */

:root {
    --primary-color: #D94FCB;
    --secondary-color: #B830A0;
    --dark-bg: #0D0D14;
    --card-bg: rgba(26, 26, 43, 0.7);
    --light-color: #f4f4f4;
    --neon-blue: #00CFFF;
    --neon-magenta: #D94FCB;
}

/* Showcase Introduction Section */
.showcase-intro {
    padding: 3rem 5%;
    text-align: center;
    background: linear-gradient(to right, rgba(13, 13, 20, 0.9), rgba(26, 26, 43, 0.7)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
    position: relative;
}

.showcase-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 207, 255, 0.1) 0%, rgba(217, 79, 203, 0.1) 100%);
    pointer-events: none;
}

.showcase-intro h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(217, 79, 203, 0.5);
    position: relative;
    z-index: 2;
}

.showcase-intro p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.showcase-intro .cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.back-button {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-button i {
    margin-right: 8px;
}

.back-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

/* Gallery Section */
.showcase-gallery {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

/* Filter Controls */
.filter-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(47, 158, 65, 0.2);
    color: white;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.sort-options select {
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.showcase-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.showcase-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.showcase-item-details {
    padding: 15px;
}

.showcase-item-title {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: white;
}

.showcase-item-meta {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 0.85rem;
}

.showcase-item-author {
    display: flex;
    align-items: center;
}

.showcase-item-category {
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(47, 158, 65, 0.2);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

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

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.image-info {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
}

.image-info h3 {
    color: var(--primary-color);
    margin: 0 0 10px;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #aaa;
    flex-wrap: wrap;
    gap: 10px;
}

.image-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Loading Indicator */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    grid-column: 1 / -1;
    color: #ccc;
}

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: rgba(47, 158, 65, 0.2);
    color: white;
}

.page-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Submission Form Styles */
.showcase-submit-section {
    padding: 2rem 5%;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.form-container {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
}

.form-success, .form-error {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.form-success {
    background-color: rgba(47, 158, 65, 0.2);
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}

.form-error {
    background-color: rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #aaa;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(47, 158, 65, 0.2);
}

/* Image Upload Area */
.image-upload-container {
    margin-bottom: 30px;
}

.drop-area {
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.drop-area.highlight {
    border-color: var(--primary-color);
    background-color: rgba(47, 158, 65, 0.1);
}

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

.drop-instructions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drop-instructions i {
    font-size: 3rem;
    color: #555;
}

.file-requirements {
    font-size: 0.85rem;
    color: #888;
}

.image-preview-container {
    display: none;
    margin-top: 20px;
    position: relative;
    max-width: 100%; /* Changed from fixed 300px to ensure responsiveness */
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Ensure centering of content */
}

.image-preview-container img {
    width: auto; /* Changed from 100% to auto to maintain aspect ratio */
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Additional styling for resized preview images */
.resized-preview {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-image:hover {
    background-color: #dc3545;
}

.submit-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--neon-magenta), var(--neon-blue));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    box-shadow: 0 0 20px rgba(217, 79, 203, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-magenta));
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 207, 255, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-note {
    margin-top: 1.5rem;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
}

/* Checkbox styling for terms agreement */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-top: 5px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: auto;
    min-width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-wrapper label {
    display: inline;
    font-weight: normal;
    color: #e0e0e0;
    cursor: pointer;
}

.terms-checkbox {
    margin-top: 15px;
    margin-bottom: 25px;
}

/* Status Badges for Admin Panel */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: capitalize;
}

.status-badge.pending {
    background-color: #ffc107;
    color: #000;
}

.status-badge.approved {
    background-color: #28a745;
    color: #fff;
}

.status-badge.rejected {
    background-color: #dc3545;
    color: #fff;
}

/* Action Button Styles */
.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.detail-actions button {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s, transform 0.2s;
}

.detail-actions .approve-btn {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.detail-actions .reject-btn {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.detail-actions .edit-btn {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.detail-actions .delete-btn {
    background-color: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.detail-actions button:hover {
    transform: translateY(-2px);
}

.detail-actions .approve-btn:hover {
    background-color: rgba(40, 167, 69, 0.3);
}

.detail-actions .reject-btn:hover {
    background-color: rgba(220, 53, 69, 0.3);
}

.detail-actions .edit-btn:hover {
    background-color: rgba(255, 193, 7, 0.3);
}

.detail-actions .delete-btn:hover {
    background-color: rgba(108, 117, 125, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .showcase-intro h2 {
        font-size: 2rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-options select {
        width: 100%;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .showcase-image {
        height: 180px;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .image-info {
        padding: 15px;
    }
    
    .image-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .submission-detail {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-image {
        height: 200px;
    }
    
    .filter-options {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}