﻿/* NennoBoard - Urban Style CSS */

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Sfondo cemento urbano */
    --bg-primary: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --border: #333333;
    --accent: #2c3e50;
    --accent-light: #3498db;
    --shadow: rgba(0, 0, 0, 0.8);
    --success: #27ae60;
    --error: #e74c3c;
    --bg-secondary: #2f2f2f;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    /* Effetto muro grezzo con texture */
    background-image: url('assets/wall-texture.png'), radial-gradient(circle at 50% 50%, #4a4a4a 0%, #303030 100%);
    background-size: auto, cover;
    color: var(--text-primary);
    min-height: 100vh;
}

.logo-graffiti {
    max-width: 300px;
    height: auto;
    width: 100%;
}

@media (max-width: 600px) {
    .logo-graffiti {
        max-width: 200px;
    }
    .voxel-video {
        width: 60px;
        height: 60px;
    }
}

/* ===== App Container ===== */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.app-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    gap: 20px;
    width: 100%;
    position: relative;
}

.header-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-title {
    font-family: 'Impact', sans-serif;
    font-size: 4rem;
    color: var(--accent-light);
    text-transform: uppercase;
    text-shadow: 
        4px 4px 0px #000,
        -1px -1px 0px #000,
        1px -1px 0px #000,
        -1px 1px 0px #000,
        1px 1px 0px #000;
    letter-spacing: 4px;
    margin: 0;
}

.voxel-video {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.status-indicator {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
}

/* ===== Buttons Grid ===== */
.buttons-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 10px 0;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 40px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

/* ===== Sound Buttons ===== */
.sound-btn {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sound-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow);
    border-color: var(--accent);
}

.sound-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px var(--shadow);
}

.sound-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: var(--text-secondary);
}

.sound-btn audio {
    display: none;
}

/* ===== Footer & FAB ===== */
.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.fab-button:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 16px rgba(233, 69, 96, 0.4);
}

.fab-button:active {
    transform: scale(0.95);
}

/* ===== Modal ===== */
.modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal {
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    margin: auto;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ===== Modal Actions ===== */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.title-input {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: border-color 0.2s;
}

.title-input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-save {
    background: linear-gradient(135deg, var(--success), #22c55e);
    color: white;
    border: none;
}

.btn-delete {
    background: linear-gradient(135deg, var(--error), #f87171);
    color: white;
    border: none;
}
