@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background-color: #000000;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Canvas Background */
canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* Glassmorphic Effect */
.glassmorphic-panel {
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Main Container */
.media-container {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    min-height: calc(100vh - 180px);
    margin-top: 5rem;
}

.media-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

/* Media List */
.media-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.media-item {
    padding: 1.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
}

.media-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.media-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bounty-amount {
    font-size: 1.5rem;
    color: #00ff88;
    margin-bottom: 1rem;
}

.status-circles {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.status-circle {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.status-circle:hover {
    transform: scale(1.2);
}

.status-circle[data-status="Not Started"] { background-color: #ff4444; }
.status-circle[data-status="In Progress"] { background-color: #ffbb33; }
.status-circle[data-status="Completed"] { background-color: #00C851; }
.status-circle[data-status="Paid Out"] { background-color: #33b5e5; }

.status-circle::before {
    content: attr(data-initials);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    white-space: nowrap;
}

.status-circle::after {
    content: attr(data-status);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    font-size: 0.8rem;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.status-circle:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Admin Controls */
.admin-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.admin-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.edit-btn {
    background: rgba(0, 200, 81, 0.3);
}

.edit-btn:hover {
    background: rgba(0, 200, 81, 0.5);
}

.remove-btn {
    background: rgba(255, 68, 68, 0.3);
}

.remove-btn:hover {
    background: rgba(255, 68, 68, 0.5);
}

.add-media-btn {
    display: block;
    margin: 0 auto 1.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(0, 200, 81, 0.2);
    color: white;
    border: 1px solid rgba(0, 200, 81, 0.3);
}

.add-media-btn:hover {
    background: rgba(0, 200, 81, 0.3);
    transform: translateY(-2px);
}

/* Admin Button */
.admin-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 3;
    border: none;
    color: white;
}

.admin-button:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    z-index: 2;
    border-radius: 0;
}

.footer-note {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Instructions Panel */
.instructions {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 15px 25px;
    z-index: 10;
    pointer-events: none;
    max-width: 250px;
    line-height: 1.6;
    font-size: 14px;
}

.instructions strong {
    color: rgba(255, 255, 255, 0.95);
}

/* Admin Mode Styles */
.admin-mode .media-item {
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.admin-mode .status-circle {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .media-container {
        margin: 5rem 1rem;
        padding: 1rem;
    }

    .media-list {
        grid-template-columns: 1fr;
    }

    .instructions {
        display: none;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    text-align: center;
    z-index: 10;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* User Management */
.user-management {
    margin-bottom: 1.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-user-btn {
    align-self: flex-start;
    background: rgba(0, 200, 81, 0.2);
    border: 1px solid rgba(0, 200, 81, 0.3);
}

.add-user-btn:hover {
    background: rgba(0, 200, 81, 0.3);
}

.user-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.remove-user-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
    background: rgba(255, 68, 68, 0.3);
}

.remove-user-btn:hover {
    background: rgba(255, 68, 68, 0.5);
} 