/**
 * Dysport Handbook - Custom Styles
 * Colors from Figma: Primary teal #008778, Dark #141414, Background #D4EDDA / #E8F0E8
 */

/* ========= HANDBOOK PAGE BACKGROUND ========= */
.handbook-page {
    background-color: #d4edda;
    min-height: 100vh;
}

/* ========= HEADER SECTION ========= */
.handbook-header {
    padding: 30px 40px 10px;
    position: relative;
}

.handbook-header .dysport-logo {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 132px;
    height: auto;
}

.handbook-header h1 {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 41px;
    color: #141414;
    letter-spacing: 0.02px;
    margin: 0 0 8px;
}

.handbook-header .subtitle {
    font-family: Arial, sans-serif;
    font-style: italic;
    font-size: 20px;
    line-height: 23px;
    color: #141414;
    letter-spacing: -0.01px;
    margin: 0;
}

/* ========= MAIN CONTENT GRID ========= */
.handbook-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 40px 30px;
    align-items: start;
}

/* ========= CALENDAR SECTION ========= */
.dysport-calendar-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.calendar-title {
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #008778;
    text-align: center;
    margin: 0 0 12px;
}

.calendar-container {
    display: flex;
    gap: 15px;
}

.calendar-grid {
    flex: 1;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 5px;
}

.calendar-nav .cal-month-year {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #008778;
}

.calendar-nav button {
    background: none;
    border: none;
    font-size: 20px;
    color: #008778;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 50%;
    line-height: 1;
    font-weight: 700;
}

.calendar-nav button:hover {
    background: rgba(0,135,120,0.1);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 4px;
}

.calendar-header span {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    padding: 4px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border-radius: 50%;
    cursor: default;
    position: relative;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #333;
    transition: background 0.2s;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.today {
    font-weight: 700;
}

.calendar-day-has-event {
    cursor: pointer;
}

.calendar-day-has-event .day-number {
    position: relative;
    z-index: 1;
}

.event-dot {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

.calendar-day-has-event:hover .event-dot {
    opacity: 0.5;
}

/* ========= CALENDAR LEGEND ========= */
.calendar-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.legend-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 12px;
    border: none;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.legend-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.legend-btn.active {
    outline: 2px solid #141414;
    outline-offset: 2px;
}

.legend-btn .type-count {
    background: #fff;
    color: #333;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.show-all-btn {
    background-color: #263391 !important;
    /*margin-top: 4px;*/
    height: 48px;
}
.cst-btn-arrow-down, .cst-btn-arrow-up {
    position: relative;
}
.cst-btn-arrow-down::after {
    content: "";
    width: 1px;
    height: 30px;
    background-color: #c3c4c7;
    position: absolute;
    bottom: -30px;
    left: 50%;
}
.cst-btn-arrow-up::before {
    content: "";
    width: 1px;
    height: 30px;
    background-color: #c3c4c7;
    position: absolute;
    top: -30px;
    left: 50%;    
}
/* ========= EVENT TOOLTIP ========= */
.calendar-event-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 200px;
    max-width: 280px;
    transform: translateX(-50%);
}

.tooltip-event {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.tooltip-event:last-child {
    border-bottom: none;
}

.tooltip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.tooltip-event strong {
    font-size: 13px;
    color: #141414;
}

.tooltip-type {
    font-size: 11px;
    color: #008778;
    font-weight: 600;
}

.tooltip-time,
.tooltip-location {
    font-size: 11px;
    color: #777;
}

/* ========= RIGHT COLUMN - STRATEGIC & KEY PRESENTATIONS ========= */
.handbook-right-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-title {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 20px;
    line-height: 23px;
    color: #008778;
    margin: 0 0 10px;
    letter-spacing: 0.04px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.handbook-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    text-decoration: none;
    min-height: 75px;
}

.handbook-card:hover {
    box-shadow: 0 4px 16px rgba(0,135,120,0.15);
    transform: translateY(-2px);
}

.handbook-card span {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 18px;
    line-height: 21px;
    color: #008778;
    letter-spacing: 1.6px;
}

/* ========= BOTTOM - MICRO JOURNEY ========= */
.micro-journey-section {
    padding: 10px 40px 30px;
}

.micro-journey-title {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 20px;
    line-height: 23px;
    color: #008778;
    margin: 0 0 12px;
    letter-spacing: 0.04px;
}

.micro-journey-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.micro-journey-card {
    background: #008778;
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 56px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    text-decoration: none;
}

.micro-journey-card:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.micro-journey-card span {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 15px;
    line-height: 17px;
    color: #fff;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
    .handbook-content {
        grid-template-columns: 1fr;
        padding: 15px 20px;
    }

    .calendar-container {
        flex-direction: column;
    }

    .calendar-legend {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: auto;
    }

    .micro-journey-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .handbook-header {
        padding: 20px;
    }

    .handbook-header h1 {
        font-size: 26px;
        line-height: 32px;
        padding-right: 100px;
    }

    .handbook-header .dysport-logo {
        width: 90px;
        right: 20px;
        top: 20px;
    }

    .micro-journey-section {
        padding: 10px 20px 30px;
    }


}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .micro-journey-grid {
        grid-template-columns: 1fr;
    }
}
