/* premium-redesign.css */
/* Modern Portals Redesign */
.premium-redesign-portals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.portal-card-pro {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
}

.portal-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.portal-card-pro-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.student-portal-card .portal-card-pro-bg {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.15) 100%);
}

.admin-portal-card .portal-card-pro-bg {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.15) 100%);
}

.portal-card-pro:hover .portal-card-pro-bg {
    opacity: 1;
}

.portal-card-pro-content {
    position: relative;
    z-index: 1;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.portal-pro-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.portal-card-pro:hover .portal-pro-icon {
    transform: scale(1.1) rotate(-5deg);
}

.student-icon-bg {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
}

.admin-icon-bg {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}

.portal-pro-icon i {
    width: 28px;
    height: 28px;
}

.portal-pro-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}

.portal-pro-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.portal-pro-arrow {
    margin-right: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.portal-card-pro:hover .portal-pro-arrow {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(-5px);
}

/* Sidebar Redesign */
.sidebar-section-header-pro {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.sidebar-icon-box-pro {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-icon-box-pro i {
    width: 20px;
    height: 20px;
}

.blue-gradient { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.orange-gradient { background: linear-gradient(135deg, #f59e0b, #d97706); }

.sidebar-title-pro {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e293b;
}

.sidebar-list-container-pro {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-resource-card-pro {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.sidebar-resource-card-pro:hover {
    transform: translateY(-3px) translateX(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.resource-icon-pro {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-resource-card-pro:hover .resource-icon-pro {
    transform: scale(1.08);
}

.guide-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.form-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.resource-body-pro h4 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.resource-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
}

.resource-type-badge i {
    width: 12px;
    height: 12px;
}

.resource-arrow-pro {
    margin-right: auto;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.sidebar-resource-card-pro:hover .resource-arrow-pro {
    color: #0f172a;
    transform: translateX(-4px);
}

/* ================================================
   PREMIUM CANVA-STYLE MODALS (Activities, Thesis, Programs)
   ================================================ */

.modal-content.glass.details-modal-content,
.modal-content.glass.td-modal-shell,
#program-details-modal .modal-content {
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12), 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-poster-hero, .thesis-discussion-hero {
    border-radius: 24px 24px 0 0 !important;
    box-shadow: inset 0 -20px 40px rgba(0,0,0,0.1) !important;
}

.event-poster-body, .td-modal-scroll-body.event-poster-body, .details-body {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    padding: 35px 40px !important;
}

.event-poster-header__title, #td-modal-title.event-poster-header__title {
    font-family: 'Cairo', sans-serif !important;
    font-size: clamp(1.4rem, 4vw, 2rem) !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    background: linear-gradient(90deg, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px !important;
}

.event-poster-header__subtitle, #td-modal-subtitle.event-poster-header__subtitle {
    color: #64748b !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.event-poster-meta-grid {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    padding: 20px 25px !important;
    gap: 20px !important;
}

.event-poster-meta-item {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, background 0.3s ease;
}

.event-poster-meta-item:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.event-poster-meta-item [data-lucide] {
    color: #6366f1 !important;
    stroke: #6366f1 !important;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px;
    border-radius: 6px;
    width: 28px !important;
    height: 28px !important;
}

.event-poster-meta-label {
    font-size: 0.85rem !important;
    color: #64748b !important;
    font-weight: 700 !important;
}

.event-poster-meta-value {
    font-size: 1.05rem !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}

.event-poster-section__title {
    color: #1e293b !important;
    font-weight: 900 !important;
    border-bottom: 3px solid #6366f1 !important;
    border-radius: 2px;
    padding-bottom: 8px !important;
    margin-bottom: 20px !important;
}

.event-poster-section__text, #td-modal-desc.event-poster-section__text {
    font-size: 1.05rem !important;
    line-height: 2 !important;
    color: #475569 !important;
    font-weight: 500 !important;
}

.event-poster-hero__badge, #td-modal-badge, .img-text-hero__badge {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
    border: none !important;
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

.event-poster-hero__close, .img-text-hero__close {
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
}

.event-poster-hero__close:hover, .img-text-hero__close:hover {
    background: rgba(15, 23, 42, 0.8) !important;
    transform: scale(1.1) rotate(90deg) !important;
}

.details-tag {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
}

.details-tag [data-lucide] {
    color: #8b5cf6 !important;
    stroke: #8b5cf6 !important;
}

/* Specific responsive adjustments for the new Canva style */
@media (max-width: 768px) {
    .modal-content.glass.details-modal-content,
    .modal-content.glass.td-modal-shell {
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    .event-poster-body, .td-modal-scroll-body.event-poster-body, .details-body {
        padding: 25px 20px !important;
    }
    
    .event-poster-meta-grid {
        padding: 15px !important;
        gap: 12px !important;
    }
}
