/**
 * apress3-overrides.css
 * Integra il tema grafico con il funzionamento di apress3.
 * Tema: nero/bianco con accenti oro.
 */

/* ── RESET dark-theme ───────────────────────────────────────── */
body, html,
.container, .main,
.main-header, .main-footer,
.dashboard-content, .tab-content,
.auth-container, .modal-content,
.homepage-content, .hero, .hero-content,
.features, .feature-grid, .feature-card,
.dashboard-tabs, .tabs-header {
    background-color: unset !important;
    color: unset !important;
}

/* ── Main padding for fixed navbar ─────────────────────────── */
main { padding-top: 65px; }

/* ── HERO (homepage) ────────────────────────────────────────── */
.ap-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 6rem 4rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ap-hero-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 1.5rem;
}

.ap-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #0a0a0a;
    margin-bottom: 1.5rem;
}
.ap-hero-title em { font-style: italic; }

.ap-hero-sub {
    font-size: 1rem;
    line-height: 1.72;
    color: #666;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0;
}

/* Music cards decorative */
.ap-hero-image {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.ap-music-card {
    background: #0a0a0a;
    border-radius: 14px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    animation: apFloat 4s ease-in-out infinite;
}
.ap-card-2 { animation-delay: 2s; }

@keyframes apFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.ap-disc {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: conic-gradient(#c9a84c 0%, #333 60%, #c9a84c 100%);
    animation: apSpin 4s linear infinite;
    flex-shrink: 0;
}
@keyframes apSpin { to { transform: rotate(360deg); } }

.ap-playing-label {
    display: block;
    font-size: 0.72rem;
    color: #888;
    margin-bottom: 0.4rem;
}

.ap-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}
.ap-wave span {
    display: block;
    width: 4px;
    background: #c9a84c;
    border-radius: 2px;
    animation: apWave 0.8s ease-in-out infinite alternate;
}
.ap-wave span:nth-child(1){height:6px;animation-delay:0s}
.ap-wave span:nth-child(2){height:14px;animation-delay:.1s}
.ap-wave span:nth-child(3){height:10px;animation-delay:.2s}
.ap-wave span:nth-child(4){height:18px;animation-delay:.3s}
.ap-wave span:nth-child(5){height:8px;animation-delay:.4s}
@keyframes apWave { to { height: 4px; } }

/* ── SEZIONI ────────────────────────────────────────────────── */
.ap-section { padding: 5rem 0; }
.ap-section-alt { background: #fafafa; }

.ap-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    color: #0a0a0a;
}

/* Steps */
.ap-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    flex-wrap: unset;
    margin: 0;
}
.ap-steps .step { text-align: left; padding: 0; min-width: 0; margin-bottom: 0; }

.ap-steps .step-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #c9a84c;
    opacity: 0.35;
    background: none;
    border-radius: 0;
    width: auto; height: auto;
    display: block;
    margin: 0 0 0.8rem 0;
    line-height: 1;
}
.ap-steps .step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: #0a0a0a; }
.ap-steps .step p { font-size: 0.88rem; color: #666; line-height: 1.65; margin-bottom: 0; }

/* Feature cards */
.ap-feat-icon {
    width: 48px; height: 48px;
    background: #f7f0e2;
    border: 1px solid #e8c96d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.ap-feat-icon svg { stroke: #a07830; }

.feature-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem 1.8rem;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: left;
}
.feature-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.feature-card h3 { font-size: 1rem; font-weight: 600; color: #0a0a0a; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.88rem; color: #666; }

/* CTA section */
.ap-cta { background: #0a0a0a; margin: 4rem 0 0; }
.ap-cta .container { padding: 4rem 2rem; text-align: center; }
.ap-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #f8f8f8;
    font-weight: 700;
    margin-bottom: 1rem;
}
.ap-cta p { color: #888; font-size: 1rem; margin-bottom: 2rem; }
.ap-cta .btn {
    background: #c9a84c !important;
    color: #0a0a0a !important;
    border-color: #c9a84c !important;
    font-weight: 600;
}
.ap-cta .btn:hover {
    background: #e8c96d !important;
    border-color: #e8c96d !important;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.main-footer {
    border-top: 1px solid #e8e8e8;
    padding: 1.5rem 2rem;
    background: #f8f8f8 !important;
    margin-top: 0;
    box-shadow: none;
}

/* ── FLASH MESSAGES ─────────────────────────────────────────── */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-danger,
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* ── DASHBOARD — fix colori tema chiaro ─────────────────────── */
.dashboard-container,
.profile-container { color: #0a0a0a !important; }

.tab { color: #999 !important; background: transparent !important; }
.tab.active { color: #0a0a0a !important; border-bottom-color: #c9a84c !important; }
.tab:hover { color: #0a0a0a !important; }

.tab-pane h3 { color: #0a0a0a; border-bottom-color: #e8e8e8; }

.song-card { background: #fff !important; color: #0a0a0a !important; border-color: #e8e8e8 !important; }
.song-artist, .song-date { color: #999 !important; }

.empty-state { background: #fafafa !important; border-color: #e8e8e8 !important; }
.empty-state p { color: #999 !important; }

.history-table th,
.history-table td { color: #0a0a0a !important; border-color: #e8e8e8 !important; }

/* Contacts in light theme */
.contacts-list,
.groups-list,
.contacts-table,
.contacts-table th,
.contacts-table td { background: #fff !important; color: #0a0a0a !important; border-color: #e8e8e8 !important; }
.contacts-table tr:hover td { background: #fafafa !important; }
.contact-name { color: #0a0a0a !important; text-shadow: none !important; }

.modal-content { background: #fff !important; color: #0a0a0a !important; }
.form-label { color: #333 !important; }
.form-control { background: #fff !important; color: #0a0a0a !important; border-color: #e8e8e8 !important; }

/* Auth pages spacing */
.auth-page { padding-top: 0; min-height: calc(100vh - 34px); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ap-hero { grid-template-columns: 1fr; padding: 4rem 1.5rem 2rem; gap: 2rem; }
    .ap-hero-image { display: none; }
    .ap-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .ap-steps { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
}
