h1,
h2 {
    font-family: 'Inter', sans-serif;
}

.drag-area {
    border: 2px dashed var(--charcoal);
    transition: all 0.3s ease;
}

.drag-area.active {
    border-color: var(--accent-primary);
    background-color: rgba(196, 43, 140, 0.05);
}

.image-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    position: relative;
    break-inside: avoid-column;
    cursor: pointer;
}

.image-card:hover {
    /*transform: translateY(-5px);*/
    opacity: 0.9;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.modal {
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
}

.modal-content {
    z-index: 101;
}

.image-card .overlay {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.2);
    /*border-radius: 0.5rem;*/
}

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

/* Lazy Loading Animation */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

.hidden {
    display: none;
}

#image-gallery {
    columns: 1;
}

@media (min-width: 640px) {
    #image-gallery {
        column-gap: 0.25rem;
        columns: 2;
    }
}

@media (min-width: 1024px) {
    #image-gallery {
        columns: 4;
        column-gap: 1rem;
    }
}

.scrolled-header-bg {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.space-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Landing page styles */
#landingPage {
    position: fixed;
    inset: 0;
    display: none;
    /* Initially hidden, JS will show if needed */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 60;
    background: var(--bg-main);
}

#landingPage .landing-container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: var(--radius-default);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 2.5rem 2rem;
    position: relative;
    animation: slideUp 0.5s ease-out;
}

#landingPage .landing-header {
    text-align: center;
    margin-bottom: 2rem;
}

#landingPage .landing-icon {
    margin: 0 auto 1rem;
}

#landingPage .landing-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
}

#landingPage .landing-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

#landingPage .landing-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#landingPage .landing-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 2px solid #e5e5e5;
    border-radius: var(--radius-default);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

#landingPage .landing-input:focus,
#landingPage .landing-button:focus {
    border-color: var(--persian-green);
}

#landingPage .landing-button {
    width: 100%;
    padding: 0.875rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-default);
    cursor: pointer;
    transition: all 0.3s ease;
}

#landingPage .landing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(128, 203, 196, 0.4);
}

#landingPage .landing-message {
    margin-top: 1.25rem;
    padding: 0.75rem;
    border-radius: var(--radius-default);
    text-align: center;
    font-size: 0.95rem;
    display: none;
}

#landingPage .landing-message.success {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

#landingPage .landing-message.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}