/**
 * Bundle Styles
 * 
 * Stili per i bundle e le loro pagine
 */

/* Layout Bundle Template */
.bundle-layout {
    padding: 0;
    background-color: var(--background-light, #f9fafb);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color, #333);
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.1rem;
    color: var(--light-text, #666);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    margin-bottom: 40px;
    text-align: center;
}

/* Stili specifici per le card bundle */
.card-uniform .card-badge:not(.card-badge-sale) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Badge Bundle specifico */
.card-uniform .card-badge:contains("Bundle") {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Stili per il contenuto dei bundle */
.card-uniform .card-meta span:first-child {
    color: #667eea;
    font-weight: 600;
}

/* Stili per il prezzo dei bundle */
.card-uniform .card-price {
    font-weight: 700;
    color: #10b981;
}

.card-uniform .card-price del {
    color: #6b7280;
    font-weight: 400;
}

/* Messaggio nessun bundle */
.no-bundles {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-bundles-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-bundles-content i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
    display: block;
}

.no-bundles-content h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 10px;
}

.no-bundles-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Stili per il bundle singolo - Layout come prodotti */
.single-bundle {
    padding: 0 0 40px 0;
    background-color: #f9fafb;
}

.single-bundle-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

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

.bundle-header {
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid #e5e7eb;
}

.bundle-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.2;
}

.bundle-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--primary-color, #6366f1);
    flex-wrap: wrap;
}

.bundle-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    font-weight: 500;
}

.bundle-meta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.bundle-featured-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.bundle-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bundle-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: 40px;
    align-items: start;
}

.bundle-description {
    line-height: 1.7;
    color: #374151;
}

.bundle-description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.bundle-description h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.bundle-includes-section {
    margin-top: 40px;
}

.bundle-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bundle-item-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.bundle-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bundle-item-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.bundle-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bundle-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.bundle-item-content {
    flex: 1;
    padding: 0;
}

.bundle-item-type {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.bundle-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.bundle-item-title a {
    color: inherit;
    text-decoration: none;
}

.bundle-item-title a:hover {
    color: #667eea;
}

.bundle-item-excerpt {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 15px;
}

.bundle-item-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bundle-item-link:hover {
    color: #5a67d8;
}

.bundle-action-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    position: sticky;
    top: 20px;
    height: fit-content;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.bundle-price-large {
    text-align: center;
    margin-bottom: 28px;
    padding: 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.bundle-price-large .price-regular {
    font-size: 1.3rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 12px;
    display: block;
    margin-bottom: 8px;
}

.bundle-price-large .price-sale {
    font-size: 2.5rem;
    font-weight: 800;
    color: #059669;
    display: block;
    line-height: 1;
}

.bundle-access-message {
    text-align: center;
    padding: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bundle-access-message .access-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #166534;
    font-weight: 600;
    margin-bottom: 12px;
}

.bundle-access-message .access-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.bundle-access-message p {
    color: #374151;
    margin-bottom: 16px;
}

.bundle-dashboard-link {
    display: inline-block;
    padding: 12px 24px;
    background: #10b981;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.bundle-dashboard-link:hover {
    background: #059669;
    color: #fff;
}

.bundle-purchase-section {
    text-align: center;
    margin-bottom: 24px;
}

.bundle-purchase-description {
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 1rem;
}

.bundle-gratuito {
    text-align: center;
    padding: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bundle-includes {
    margin-top: 24px;
}

.bundle-includes h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.bundle-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bundle-includes li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #374151;
    font-size: 0.95rem;
}

.bundle-includes svg {
    width: 16px;
    height: 16px;
    fill: #10b981;
    flex-shrink: 0;
}


/* Responsive */
@media (max-width: 992px) {
    .bundle-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .bundle-action-card {
        position: static;
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .bundle-header {
        padding: 30px 20px 20px 20px;
    }
    
    .bundle-title {
        font-size: 2rem;
    }
    
    .bundle-content-wrapper {
        padding: 30px 20px;
    }
    
    .bundle-items-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .bundle-header {
        padding: 20px 15px 15px 15px;
    }
    
    .bundle-title {
        font-size: 1.75rem;
    }
    
    .bundle-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .bundle-content-wrapper {
        padding: 20px 15px;
    }
    
    .bundle-action-card {
        padding: 20px;
    }
} 