/* --- VARIABLES --- */
:root {
    --bg-color: #050505;
    --card-bg: #151515;
    --text-main: #e0e0e0;
    --text-dim: #888;
    --accent-pink: #ff9a9e;
    --accent-blue: #6dd5ed;
    
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    --border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Modal Vars */
    --glass-pastel: linear-gradient(135deg, rgba(40, 44, 52, 0.95), rgba(60, 60, 70, 0.95));
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top center, #1a1a2e 0%, #000000 80%);
    background-attachment: fixed;
    color: var(--text-main);
}

/* Header */
header {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: var(--border);
}

/* New Title Styling */
.album-title {
    margin: 0;
    font-size: 1.8rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

.brand-name {
    font-family: 'Fira Code', monospace; /* Main page font */
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-pink), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.back-btn {
    text-decoration: none; color: var(--text-main); font-weight: bold;
    padding: 8px 20px; background: rgba(255, 255, 255, 0.05);
    border: var(--border); border-radius: 20px; transition: 0.2s;
}
.back-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--accent-pink); }

/* Gallery Grid */
.gallery-container {
    max-width: 1200px; margin: 40px auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Photo Card */
.photo-card {
    background: var(--card-bg); border: var(--border); border-radius: 20px;
    padding: 15px; box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s;
    cursor: pointer;
    display: flex; flex-direction: column; gap: 12px;
}
.photo-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.3); }

.photo-card img {
    width: 100%; height: 250px; object-fit: cover; border-radius: 15px;
    filter: brightness(0.9); transition: filter 0.3s;
}
.photo-card:hover img { filter: brightness(1); }

.info { display: flex; justify-content: space-between; align-items: center; }
.location { font-size: 0.85rem; color: var(--text-dim); }
.votes { font-weight: bold; color: var(--accent-pink); }

/* --- SHARED MODAL CSS (Must be included!) --- */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; justify-content: center; align-items: center;
    z-index: 9999; backdrop-filter: blur(5px);
}
.modal.active { display: flex !important; animation: fadeIn 0.3s forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.pastel-glass {
    background: var(--glass-pastel);
    border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 40px;
    width: 900px; max-width: 90%; max-height: 85vh;
    display: flex; gap: 40px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    color: #fff; position: relative; overflow: hidden;
}

.pastel-glass::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px; padding: 2px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #a18cd1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.modal-left { flex: 1.2; display: flex; align-items: center; justify-content: center; }
.modal-right { flex: 0.8; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.modal-left img { max-width: 100%; max-height: 60vh; border-radius: 12px; }

.close-btn {
    position: absolute; top: 20px; right: 25px;
    background: none; border: none; color: #aaa; font-size: 2rem; cursor: pointer;
    z-index: 10;
}
.close-btn:hover { color: #fff; }

.vote-area {
    display: flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 50px;
    width: fit-content;
}

.comments-section { margin-top: auto; }
#modal-comments-list div { padding: 8px 0; border-bottom: 1px dashed #444; }
.comment-box input { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: var(--border); border-radius: 8px; color: #fff; box-sizing: border-box; }
.comment-box input:focus { outline: none; border-color: var(--accent-blue); }