/**
 * Single Activity Page Styles
 * 
 * @package Activities_Table
 */

/* ==================== General Styles ==================== */
.single-activity-wrapper {
    background: 
        url('/wp-content/uploads/2025/11/Polygon-1-5.png'),
        linear-gradient(118deg, #F5F9FD 18.2%, #FFF 65.6%);
    background-repeat: no-repeat, no-repeat;
    background-position: 
        0 273.35px,
        0 0;
    background-size: 
        547px 508px,
        auto;
    position: relative;
    overflow: hidden;
}

/* Small rotated vector decoration */
.single-activity-content::before {
    content: '';
    position: absolute;
    left: -86.98px;
    top: -40.35px;
    width: 91.367px;
    height: 72.199px;
    background-image: url('/wp-content/uploads/2025/11/Vector-35.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform-origin: center;
    pointer-events: none;
    z-index: 0;
}

.single-activity-container {
    width: 90%;
    max-width: 1560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==================== Top Navigation Bar ==================== */
.single-activity-nav {
    padding: 40px 0 35px 0;
}

.single-activity-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.print-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 18px;
    font-weight: 400;
    color: #283565;
    padding: 0;
    direction: rtl;
}

.print-button:hover {
    opacity: 0.7;
}

.print-button svg {
    width: 23px;
    height: 23px;
}

.back-to-list {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 18px;
    font-weight: 400;
    color: #283565;
    direction: rtl;
}

.back-to-list:hover {
    opacity: 0.7;
}

.back-to-list svg {
    width: 20px;
    height: 20px;
}

/* ==================== Main Content Area ==================== */
.single-activity-content {
    padding-bottom: 160px;
    position: relative;
}

.single-activity-inner-container {
    display: flex;
    justify-content: space-between;
    gap: 56px;
    direction: rtl;
}

/* ==================== Info Card (Left Sidebar) ==================== */
.activity-info-card {
    background: #ffffff;
    border: 1px solid #efefef;
    border-radius: 20px;
    padding: 50px;
    width: 442px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: 0 5.007px 7.51px -1.252px rgba(0, 0, 0, 0.10), 0 2.503px 5.007px -2.503px rgba(0, 0, 0, 0.10);
}

.info-card-item {
    display: flex;
    align-items: center;
    gap: 15px;
    direction: rtl;
}

.info-card-item p {
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 22px;
    font-weight: 400;
    line-height: 30px;
    color: #283565;
    text-align: right;
    margin: 0;
}

.info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
}

/* ==================== Main Content (Right Side) ==================== */
.activity-main-content {
    flex: 1;
    max-width: 934px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Activity Badges */
.activity-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.activity-badge {
    display: inline-flex;
    padding: 3.755px 11.265px;
    border-radius: 10.013px;
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    text-align: right;
    border: 1.252px solid transparent;
}

/* Activity Title */
.activity-title {
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 46px;
    font-weight: 800;
    line-height: normal;
    color: #40cecf;
    text-align: right;
    margin: 0;
    padding-bottom: 12px;
}

/* Activity Description */
.activity-description {
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 22px;
    font-weight: 400;
    line-height: 35px;
    color: #283565;
    text-align: right;
    padding-bottom: 10px;
}

.activity-description p {
    margin: 0 0 12px 0;
}

.activity-description p:last-child {
    margin-bottom: 0;
}

/* Activity Meta Rows (Goals, Timing) */
.activity-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
}

.activity-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-meta-icon svg {
    width: auto;
    height: auto;
}

.activity-meta-row p {
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 22px;
    font-weight: 400;
    line-height: 35px;
    color: #283565;
    text-align: right;
    margin: 0;
}

/* Teacher Notes Box */
.teacher-notes-box {
    background: #ffffff;
    border: 1px solid #daeaf4;
    border-radius: 20px;
    padding: 20px;
    text-align: right;
}

.teacher-notes-box h3 {
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 24px;
    font-weight: 500;
    line-height: normal;
    color: #40cecf;
    padding-bottom: 12px;
}

.teacher-notes-content {
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 22px;
    font-weight: 400;
    line-height: 35px;
    color: #283565;
}

.teacher-notes-content p {
    margin: 0 0 12px 0;
}

.teacher-notes-content p:last-child {
    margin-bottom: 0;
}

/* ==================== Related Activities Section ==================== */
.related-activities-section {
    width: 90%;
    max-width: 1560px;
    margin: 0 auto;
    padding-bottom: 75px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.related-activities-title {
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 46px;
    font-weight: 700;
    line-height: 50px;
    color: #283565;
    text-align: right;
    margin: 0;
    padding-bottom: 0px;
}

.related-activities-grid {
    display: flex;
    gap: 35px;
    direction: rtl;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.related-activities-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Related Activity Cards */
.related-activity-card {
    background: #ffffff;
    border: 2px solid #e6f1fb;
    border-radius: 20px;
    padding: 40px 40px 50px 40px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 16.467px 24.7px -4.94px rgba(0, 0, 0, 0.10), 0 6.587px 9.88px -6.587px rgba(0, 0, 0, 0.10);
    flex: 25%;
}

.related-activity-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-activity-title {
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 22px;
    font-weight: 800;
    line-height: 30px;
    color: #283565;
    text-align: right;
    margin: 0;
    padding-bottom: 0px;
}

.related-activity-excerpt {
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #283565;
    text-align: right;
    margin: 0;
}

.related-activity-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.related-activity-badge {
    display: inline-flex;
    padding: 3.755px 11.265px;
    border-radius: 10.013px;
    font-family: 'Heebo-New',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    text-align: right;
    border: 1.252px solid transparent;
}

/* ==================== Print Styles ==================== */
@media print {
    /* Hide elements we don't want to print */
    .single-activity-nav,
    .related-activities-section,
    header,
    footer,
    .print-button,
    .back-to-list {
        display: none !important;
    }

    /* Make content full width for printing */
    .single-activity-content {
        padding: 10px;
    }

    /* Adjust colors for print */
    body {
        background: white;
    }

    /* Keep the layout intact */
    .single-activity-inner-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .activity-main-content {
        gap: 25px;
    }

    .activity-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .activity-badges {
        gap: 8px;
    }

    .activity-description {
        font-size: 18px;
        line-height: 28px;
    }

    .activity-meta-row p {
        font-size: 18px;
        line-height: 28px;
    }

    .activity-meta-icon svg {
        width: 38px;
        height: auto;
    }

    .teacher-notes-box h3 {
        font-size: 20px;
        line-height: 30px;
    }

    .teacher-notes-content {
        font-size: 16px;
        line-height: 26px;
    }

    .activity-info-card {
        padding: 30px;
    }

    .info-card-item p {
        font-size: 18px;
        line-height: 28px;
    }

    .activity-info-card {
        page-break-inside: avoid;
    }

    .teacher-notes-box {
        page-break-inside: avoid;
    }
}

/* ==================== Mobile Responsive Styles ==================== */
@media screen and (max-width: 980px) {
    .single-activity-wrapper {
        background: linear-gradient(118deg, #F5F9FD 18.2%, #FFF 65.6%);
        background-size: auto;
    }
    /* Top Navigation */
    .single-activity-nav {
        padding: 30px 0 20px 0;
    }

    .single-activity-nav-content {
        margin-bottom: 20px;
    }

    .print-button,
    .back-to-list {
        font-size: 16px;
    }

    /* Main Content */
    .single-activity-content {
        padding-bottom: 30px;
    }

    .single-activity-inner-container {
        flex-direction: column;
        gap: 30px;
    }

    /* Info Card - Moved above related activities on mobile */
    .activity-info-card {
        width: 100%;
        padding: 30px 20px;
        gap: 20px;
        order: 2;
    }

    .info-card-item {
        gap: 12px;
    }

    .info-card-item p {
        font-size: 18px;
        line-height: 26px;
    }

    /* Main Content */
    .activity-main-content {
        max-width: 100%;
        gap: 24px;
        order: 1;
    }

    .activity-badges {
        gap: 8px;
        padding-bottom: 5px;
    }

    .activity-badge {
        font-size: 16px;
        padding: 3px 10px;
    }

    .activity-title {
        font-size: 32px;
        line-height: 1.2;
        padding-bottom: 0px;
    }

    .activity-description p {
        font-size: 18px;
        line-height: 28px;
    }

    .activity-meta-row {
        gap: 10px;
    }

    .activity-meta-icon svg {
        width: 40px;
        height: auto;
    }

    .activity-meta-row p {
        font-size: 18px;
        line-height: 28px;
    }

    .teacher-notes-box {
        padding: 15px;
    }

    .teacher-notes-box h3 {
        font-size: 20px;
    }

    .teacher-notes-content p {
        font-size: 18px;
        line-height: 28px;
    }

    /* Related Activities */

    .related-activities-section {
        gap: 24px;
        width: 100%;
        padding-bottom: 55px;
    }

    .related-activities-title {
        font-size: 32px;
        line-height: 1.2;
        width: 90%;
        max-width: 1560px;
        margin: 0 auto;
    }

    /* Make related activities scrollable horizontally on mobile */
    .related-activities-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding: 0 5% 30px 5%;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .related-activities-grid::-webkit-scrollbar {
        display: none;
    }

    .related-activity-card {
        flex: 0 0 280px;
        padding: 30px 20px;
        scroll-snap-align: center;
    }

    .related-activity-title {
        font-size: 18px;
        line-height: 26px;
    }

    .related-activity-excerpt {
        font-size: 16px;
        line-height: 24px;
    }

    .related-activity-badge {
        font-size: 14px;
        padding: 2px 8px;
    }
}

/* ==================== Tablet Styles ==================== */
@media screen and (min-width: 769px) and (max-width: 1200px) {

    .related-activities-grid {
        gap: 25px;
        padding-left: 120px;
    }
    
    .related-activity-card {
        flex: 0 0 320px;
    }
}

/* ==================== Tablet Styles ==================== */
@media screen and (min-width: 981px) and (max-width: 1600px) {
    .single-activity-wrapper {
        background-size: 400px 366px, auto;
    }

    .single-activity-content::before {
        left: -60px;
        top: -30px;
        width: 68.525px;
        height: 54.149px;
    }

    .activity-info-card {
        width: 380px;
    }

    .info-card-item p {
        font-size: 18px;
        line-height: 28px;
    }

    .info-card-icon {
        width: 25px;
    }

    .activity-badge {
        font-size: 16px;
    }

    .activity-title {
        font-size: 38px;
        line-height: 46px;
    }

    .activity-description {
        font-size: 18px;
        line-height: 28px;
    }

    .activity-meta-row p {
        font-size: 18px;
        line-height: 28px;
    }

    .activity-meta-icon svg {
        width: 38px;
        height: auto;
    }

    .teacher-notes-box h3 {
        font-size: 22px;
        line-height: 30px;
    }

    .related-activities-title {
        font-size: 38px;
        line-height: 46px;
    }

    .related-activities-grid {
        gap: 30px;
    }

    .related-activity-card {
        padding: 30px 30px 40px 30px;
    }

    .related-activity-title {
        font-size: 20px;
        line-height: 28px;
    }

    .related-activity-excerpt {
        font-size: 16px;
        line-height: 24px;
    }

    .related-activity-badge {
        font-size: 14px;
        padding: 2px 8px;
    }
}

