/* Ateliere - Workshop Content Info Styles */
@import "../shared/venue-map-button.css";

.htc-workshop-info {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.htc-workshop-info__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    overflow-x: hidden; /* guard against tiny sub-pixel overflow */
}

.htc-workshop-info__header {
    text-align: center;
    margin-bottom: 3rem;
}

.htc-workshop-info__title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
}

.htc-workshop-info__meta {
    display: flex;
   justify-content: center;
   align-items: center;
   gap: 2rem;
   flex-wrap: wrap;
   margin-bottom: 1.5rem;
}

.htc-workshop-info__period,
.htc-workshop-info__locations {
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.htc-workshop-info__content {
    margin-bottom: 2rem;
}

.htc-workshop-info__description {
    text-align: center;
    margin-bottom: 3rem;
}

.htc-workshop-info__intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #2d3748;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.htc-workshop-info__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

/* Allow grid children to shrink and avoid overflow */
.htc-workshop-info__details,
.htc-workshop-info__sidebar {
    min-width: 0;
}

.htc-workshop-info__details {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.htc-workshop-info__section {
    margin-bottom: 3rem;
}

.htc-workshop-info__section:last-child {
    margin-bottom: 0;
}

.htc-workshop-info__section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1.5rem 0;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.75rem;
}

/* Workshop List Styles */
.htc-workshop-info__workshops {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.htc-workshop-info__workshop {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #667eea; /* default accent */
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.htc-workshop-info__workshop h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
}

.htc-workshop-info__workshop p {
    margin: 0.35rem 0;
    color: #2d3748;
}

.htc-workshop-info__workshop p strong {
    color: #1a202c;
}

/* Explicit accent modifiers (preferred) and data-accent attribute alternative */
.htc-workshop-info__workshop--accent-1,
.htc-workshop-info__workshop[data-accent="1"] { border-left-color: #667eea; }
.htc-workshop-info__workshop--accent-2,
.htc-workshop-info__workshop[data-accent="2"] { border-left-color: #38b2ac; }
.htc-workshop-info__workshop--accent-3,
.htc-workshop-info__workshop[data-accent="3"] { border-left-color: #ed8936; }
.htc-workshop-info__workshop--accent-4,
.htc-workshop-info__workshop[data-accent="4"] { border-left-color: #9f7aea; }
.htc-workshop-info__workshop--accent-5,
.htc-workshop-info__workshop[data-accent="5"] { border-left-color: #48bb78; }
.htc-workshop-info__workshop--accent-6,
.htc-workshop-info__workshop[data-accent="6"] { border-left-color: #f56565; }
.htc-workshop-info__workshop--accent-7,
.htc-workshop-info__workshop[data-accent="7"] { border-left-color: #4299e1; }
.htc-workshop-info__workshop--accent-8,
.htc-workshop-info__workshop[data-accent="8"] { border-left-color: #d53f8c; }
/* Extended accents for additional workshops */
.htc-workshop-info__workshop--accent-9,
.htc-workshop-info__workshop[data-accent="9"] { border-left-color: #ecc94b; }
.htc-workshop-info__workshop--accent-10,
.htc-workshop-info__workshop[data-accent="10"] { border-left-color: #06b6d4; }
.htc-workshop-info__workshop--accent-11,
.htc-workshop-info__workshop[data-accent="11"] { border-left-color: #84cc16; }
.htc-workshop-info__workshop--accent-12,
.htc-workshop-info__workshop[data-accent="12"] { border-left-color: #fb7185; }

@media (min-width: 900px) {
    .htc-workshop-info__workshops {
        grid-template-columns: 1fr 1fr;
    }
}

/* Schedule Styles */
.htc-workshop-info__schedule {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.htc-schedule-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.htc-schedule-item__date {
    background: #667eea;
    color: #ffffff;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.htc-schedule-item__events {
    padding: 1.5rem;
    background: #ffffff;
}

.htc-schedule-event {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.htc-schedule-event:last-child {
    border-bottom: none;
}

.htc-schedule-event__time {
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.htc-schedule-event__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
}

.htc-schedule-event__location {
    font-size: 0.875rem;
    color: #4a5568;
    font-style: italic;
}

/* Benefits Styles */
.htc-workshop-info__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.htc-workshop-info__benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.htc-workshop-info__benefit:last-child {
    margin-bottom: 0;
}

.htc-workshop-info__benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.htc-workshop-info__benefit-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #2d3748;
}

/* Sidebar Styles */
.htc-workshop-info__sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.htc-workshop-info__cta-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid #667eea;
    position: sticky;
    top: 2rem;
}

.htc-workshop-info__cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1rem 0;
}

.htc-workshop-info__cta-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 1.5rem 0;
}

.htc-workshop-info__cta-benefits {
    margin-bottom: 2rem;
}

.htc-workshop-info__cta-benefit {
    font-size: 0.9375rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.htc-workshop-info__cta-benefit::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

.htc-workshop-info__register-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.htc-workshop-info__requirements,
.htc-workshop-info__contact {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.htc-workshop-info__requirements-title,
.htc-workshop-info__contact-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 1rem 0;
}

.htc-workshop-info__requirement {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.htc-workshop-info__requirement:last-child {
    margin-bottom: 0;
}

.htc-workshop-info__contact-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #4a5568;
    margin: 0 0 1rem 0;
}

.htc-workshop-info__contact-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    overflow-wrap: anywhere; /* allow breaking long email */
    word-break: break-word;
}

.htc-workshop-info__contact-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.htc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
    box-sizing: border-box; /* prevent 100% width buttons from overflowing */
    max-width: 100%;
}

.htc-button__icon {
    flex-shrink: 0;
}

.htc-button--primary {
    background: #667eea;
    color: #ffffff;
    border: 2px solid #667eea;
}

.htc-button--primary:hover,
.htc-button--primary:focus {
    background: #5a67d8;
    color: #ffffff;
    border-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Tablet & below */
@media (max-width: 1023.98px) {
    .htc-workshop-info__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .htc-workshop-info__cta-card {
        position: static;
    }
    
    .htc-schedule-event {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .htc-schedule-event__time {
        width: fit-content;
    }
}

/* Mobile only */
@media (max-width: 575.98px) {
    .htc-workshop-info {
        padding: 2rem 0;
    }
    
    .htc-workshop-info__title {
        font-size: 2.25rem;
    }
    
    .htc-workshop-info__meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .htc-workshop-info__period,
    .htc-workshop-info__locations {
        font-size: 1rem;
    }
    
    .htc-workshop-info__intro {
        font-size: 1.125rem;
        padding: 1.5rem;
    }
    
    .htc-workshop-info__details {
        padding: 1.5rem;
    }
    
    .htc-workshop-info__section-title {
        font-size: 1.5rem;
    }
    
    .htc-schedule-item__events {
        padding: 1rem;
    }
    
    .htc-workshop-info__cta-card {
        padding: 1.5rem;
    }

    /* Former <=575.98px refinements kept within mobile bucket */
}

/* Note: merged former 480px styles into Mobile bucket above to keep 3 viewports */
