/**
 * ArtistPress - Foglio di stile principale
 */

/* Importa stili per gestione contatti e dashboard */
@import 'contacts.css';
@import 'dashboard.css';

/* Stili di base */
:root {
    --primary-color: #2196F3; /* Colore principale azzurro come richiesto */
    --primary-dark: #1976D2;
    --secondary-color: #4CAF50;
    --danger-color: #f44336;
    --danger-dark: #d32f2f;
    --success-color: #4CAF50;
    --warning-color: #ff9800;
    --info-color: #2196F3;
    --text-color: #ffffff; /* Testo bianco come richiesto */
    --text-light: #e0e0e0;
    --background-color: #0e1525; /* Sfondo richiesto */
    --light-gray: #1e2535;
    --medium-gray: #2a3142;
    --dark-gray: #5a6478;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--medium-gray);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    margin-bottom: 0;
}

.main-header a {
    text-decoration: none;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: bold;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Auth Header */
.auth-header {
    text-align: center;
    padding: 2rem 0;
}

.auth-header h1 {
    margin-bottom: 0;
}

/* Footer */
.main-footer {
    background-color: var(--medium-gray);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

/* Auth Container */
.auth-container {
    max-width: 500px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background-color: var(--medium-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.form input[type="text"],
.form input[type="password"],
.form input[type="email"],
.form select,
.form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form input[type="file"] {
    padding: 0.5rem 0;
}

.form select {
    height: 2.75rem;
}

.form-actions {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #0b7dda;
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: var(--danger-dark);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Homepage Styles */
.homepage-content {
    background-color: var(--medium-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: -0.5rem;
}

.cta-buttons {
    margin-top: 1.5rem;
}

.cta-buttons .btn {
    margin-right: 1rem;
}

.features {
    margin-bottom: 3rem;
}

.features h2,
.how-it-works h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 64px;
    height: 64px;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: #f0f0f0;
}

/* Footer Styles */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
}

.footer-logo h2 {
    margin-bottom: 0.5rem;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--medium-gray);
    padding-top: 1.5rem;
}

/* Dashboard Styles */
.dashboard-container {
    background-color: var(--medium-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    margin-bottom: 0.5rem;
}

.dashboard-tabs {
    margin-top: 2rem;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 2rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: bold;
}

.tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Songs Grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.song-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.song-icon {
    margin-bottom: 1rem;
}

.song-icon img {
    width: 48px;
    height: 48px;
}

.song-details h4 {
    margin-bottom: 0.5rem;
}

.song-artist {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.song-date {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.song-controls {
    margin-top: 1.5rem;
}

.song-controls audio {
    width: 100%;
    margin-bottom: 1rem;
}

.song-actions {
    display: flex;
    justify-content: space-between;
}

.inline-form {
    display: inline;
}

/* Postcards Grid */
.postcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.postcard-option {
    position: relative;
    text-align: center;
}

.postcard-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.postcard-option label {
    cursor: pointer;
    display: block;
}

.postcard-option img {
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: border-color 0.2s;
}

.postcard-option input[type="radio"]:checked + label img {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* History Table */
.history-table-container {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.history-table th {
    background-color: var(--light-gray);
    font-weight: bold;
}

.history-table tr:hover {
    background-color: #f9f9f9;
}

.history-postcard-thumb {
    width: 80px;
    border-radius: var(--border-radius);
}

/* Profile Styles */
.profile-container {
    background-color: var(--medium-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-header h2 {
    margin-bottom: 0.5rem;
}

.profile-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.profile-info,
.profile-edit {
    flex: 1;
    min-width: 300px;
}

.profile-info {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.profile-info h3,
.profile-edit h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.profile-info p {
    margin-bottom: 0.75rem;
}

.password-change-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.password-change-section h4 {
    margin-bottom: 1.5rem;
}

/* Utility Classes */
.required {
    color: var(--danger-color);
    margin-left: 0.25rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        margin-bottom: 2rem;
    }
    
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .tab {
        padding: 0.75rem 1rem;
    }
    
    .song-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .song-actions .btn {
        width: 100%;
    }
    
    .postcards-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 576px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav {
        margin-top: 1rem;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .main-nav li:first-child {
        margin-left: 0;
    }
    
    .profile-content {
        flex-direction: column;
    }
}