/* Gallery Page Specific Styles */

/* Gallery Hero */
.gallery-hero {
    padding: 120px 0 80px;
    text-align: center;
}

.gallery-hero .hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-hero .hero-content {
    animation: slideInUp 1s ease-out;
}

/* Gallery Filters */
.gallery-filters {
    padding: 2rem 0;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    color: var(--dark-text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glass-shadow);
    border-color: var(--primary-green);
}

.filter-btn.active {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 10px 30px var(--glass-shadow);
}

.filter-btn span {
    position: relative;
    z-index: 2;
}

/* Gallery Grid */
.gallery-grid-section {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

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

.gallery-card {
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px var(--glass-shadow);
}

.card-image {
    position: relative;
    height: 250px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: var(--surface-green);
}

.image-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-green) 0%, var(--surface-green-light) 100%);
    transition: all 0.3s ease;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

.placeholder-text {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.1rem;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
}

.view-btn {
    background: white;
    color: var(--primary-green);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.card-content {
    padding: 0 0.5rem;
}

.card-title {
    color: var(--dark-text);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--dark-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-stats .stat {
    background: var(--surface-green);
    color: var(--primary-green);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Add New Card Button */
.add-new-card {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed var(--primary-green);
    background: rgba(16, 185, 129, 0.05);
}

.add-new-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px var(--glass-shadow);
    border-color: var(--primary-green);
    background: rgba(16, 185, 129, 0.1);
}

.add-new-content {
    text-align: center;
    color: var(--primary-green);
}

.add-icon {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1;
}

.add-text {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

.close {
    color: var(--dark-text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-body {
    padding: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-bg);
    color: var(--dark-text);
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.form-actions .btn {
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--dark-text);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--surface-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glass-shadow);
}

/* Password Input Specific */
#passwordInput {
    margin-bottom: 1rem;
}

#submitPassword {
    width: 100%;
    padding: 1rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#submitPassword:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Gallery Stats */
.gallery-stats {
    padding: 4rem 0;
    background: var(--surface-green);
    margin-top: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
}

.stat-card .glass-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover .glass-card {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--glass-shadow);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--dark-text-secondary);
    font-weight: 500;
}

/* Filter Animations */
.gallery-item.filtering-out {
    animation: filterOut 0.3s ease-out forwards;
}

.gallery-item.filtering-in {
    animation: filterIn 0.5s ease-out forwards;
}

@keyframes filterOut {
    to {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
}

@keyframes filterIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card .glass-card {
        padding: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}