:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent: #d4af37; /* Gold */
    --accent-glow: rgba(212, 175, 55, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-main: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-8 {
    position: absolute;
    color: rgba(255, 255, 255, 0.03);
    font-size: 5rem;
    animation: float 20s infinite linear;
    user-select: none;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    background: linear-gradient(to bottom, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.infinity {
    font-size: 3rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent-glow));
    animation: pulse 3s infinite ease-in-out;
}

h1 {
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Masonry Grid */
#masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.grid-item {
    aspect-ratio: 1/1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--accent);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-8 {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(90deg); /* Horizontal 8 */
    transition: color 0.3s ease;
}

.grid-item:hover .placeholder-8 {
    color: rgba(212, 175, 55, 0.2);
}

/* Upload FAB */
.upload-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

.upload-fab:hover {
    transform: scale(1.1);
}

.upload-icon {
    font-size: 2rem;
    color: #000;
    font-weight: bold;
}

.upload-text {
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.upload-fab:hover .upload-text {
    opacity: 1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--card-border);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-primary);
}

h2 {
    margin-top: 0;
    color: var(--accent);
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 25px;
    border: 2px dashed var(--card-border);
    border-radius: 3px;
    transition: 0.2s;
    background-color: rgba(255,255,255,0.02);
    margin-bottom: 1rem;
    box-sizing: border-box;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
}

.file-drop-area.is-dragover {
    background-color: rgba(255,255,255,0.05);
    border-color: var(--accent);
}

.fake-btn {
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 8px 15px;
    margin-right: 10px;
    font-size: 12px;
    text-transform: uppercase;
}

.file-msg {
    font-size: small;
    font-weight: 300;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

.file-input:focus {
    outline: none;
}

.input-group input {
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    color: #fff;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

#statusMsg {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    #masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
