/**
 * KPromoSender Frontend CSS
 * Stili per le pagine pubbliche delle promo
 * Version: 1.4.9
 */

/* === RESET E BASE === */
.kpromo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kpromo-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.kpromo-title {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 700;
}

.kpromo-artist {
    font-size: 1.5rem;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.kpromo-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.kpromo-meta-item {
    text-align: center;
}

.kpromo-meta-label {
    display: block;
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.kpromo-meta-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

/* === ARTWORK === */
.kpromo-artwork-section {
    margin-bottom: 40px;
    text-align: center;
}

.kpromo-artwork {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.kpromo-artwork:hover {
    transform: scale(1.05);
}

/* === PLAYER === */
.kpromo-player-section {
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kpromo-player-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.kpromo-audio-player {
    width: 100%;
    margin-bottom: 20px;
}

.kpromo-audio-player audio {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    outline: none;
}

.kpromo-track-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kpromo-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.kpromo-track-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.kpromo-track-info {
    flex: 1;
}

.kpromo-track-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.kpromo-track-duration {
    font-size: 0.9rem;
    color: #666;
}

.kpromo-track-controls {
    display: flex;
    gap: 10px;
}

.kpromo-play-btn {
    background: #007cba;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpromo-play-btn:hover {
    background: #005a87;
}

/* === DOWNLOAD SECTION === */
.kpromo-downloads {
    margin-bottom: 40px;
}

.kpromo-section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    position: relative;
}

.kpromo-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007cba;
    border-radius: 2px;
}

.kpromo-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.kpromo-download-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.kpromo-download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.kpromo-download-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #007cba;
}

.kpromo-download-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.kpromo-download-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.kpromo-download-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 150px;
}

.kpromo-download-btn:hover {
    background: #005a87;
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.kpromo-download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.kpromo-download-count {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
}

/* === STREAMING LINKS === */
.kpromo-streaming {
    margin-bottom: 40px;
}

.kpromo-streaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.kpromo-streaming-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.kpromo-streaming-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #333;
}

.kpromo-streaming-link.spotify:hover {
    border-color: #1DB954;
}

.kpromo-streaming-link.apple-music:hover {
    border-color: #FA2C5A;
}

.kpromo-streaming-link.youtube:hover {
    border-color: #FF0000;
}

.kpromo-streaming-link.amazon:hover {
    border-color: #FF9900;
}

.kpromo-streaming-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    border-radius: 5px;
}

.kpromo-streaming-name {
    font-weight: 600;
}

/* === SHARE SECTION === */
.kpromo-share {
    margin-bottom: 40px;
    text-align: center;
}

.kpromo-share-url {
    display: flex;
    max-width: 500px;
    margin: 20px auto;
    border: 2px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
}

.kpromo-share-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: #f8f9fa;
}

.kpromo-copy-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.kpromo-copy-btn:hover {
    background: #005a87;
}

.kpromo-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.kpromo-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.kpromo-share-btn:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

.kpromo-share-btn.facebook {
    background: #1877F2;
}

.kpromo-share-btn.twitter {
    background: #1DA1F2;
}

.kpromo-share-btn.whatsapp {
    background: #25D366;
}

.kpromo-share-btn.telegram {
    background: #0088CC;
}

/* === INFO SECTION === */
.kpromo-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.kpromo-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.kpromo-info-item {
    text-align: center;
}

.kpromo-info-label {
    display: block;
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.kpromo-info-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

/* === STATS === */
.kpromo-stats {
    text-align: center;
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border-radius: 15px;
}

.kpromo-stats-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.kpromo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.kpromo-stat-item {
    text-align: center;
}

.kpromo-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.kpromo-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .kpromo-container {
        padding: 15px;
    }
    
    .kpromo-title {
        font-size: 2rem;
    }
    
    .kpromo-artist {
        font-size: 1.2rem;
    }
    
    .kpromo-meta {
        gap: 15px;
    }
    
    .kpromo-download-grid {
        grid-template-columns: 1fr;
    }
    
    .kpromo-streaming-grid {
        grid-template-columns: 1fr;
    }
    
    .kpromo-track-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .kpromo-track-controls {
        width: 100%;
        justify-content: center;
    }
    
    .kpromo-share-url {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .kpromo-share-input,
    .kpromo-copy-btn {
        border-radius: 0;
    }
    
    .kpromo-share-input {
        border-radius: 10px 10px 0 0;
    }
    
    .kpromo-copy-btn {
        border-radius: 0 0 10px 10px;
    }
}

/* === LOADING E STATI === */
.kpromo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.kpromo-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: kpromo-spin 1s linear infinite;
}

@keyframes kpromo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.kpromo-error {
    text-align: center;
    padding: 40px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 10px;
    margin: 20px 0;
}

.kpromo-success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 15px 0;
    text-align: center;
}

/* === ANIMAZIONI === */
.kpromo-fade-in {
    animation: kpromo-fade-in 0.6s ease-out;
}

@keyframes kpromo-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kpromo-slide-up {
    animation: kpromo-slide-up 0.5s ease-out;
}

@keyframes kpromo-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === PRINT STYLES === */
@media print {
    .kpromo-download-btn,
    .kpromo-share-buttons,
    .kpromo-streaming-link {
        display: none;
    }
    
    .kpromo-container {
        max-width: none;
        padding: 0;
    }
} 