/* Recognition Section Styles - Modern 4-Grid Layout */
/* Integration with existing design system */
.recognition-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
}

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

.recognition-header {
    text-align: center;
    margin-bottom: 60px;
}

.recognition-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8FD3F4, #C4E765, #FADB5D, #F0A3B9, #BCAEDC, #9ABFFB);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
    margin-bottom: 20px;
    line-height: 1.2;
}

.recognition-subtitle {
    font-size: 1.2rem;
    color: var(--dark-grey60);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Dark mode support */
html.dark .recognition-subtitle {
    color: var(--light-grey60);
}

/* 4-Grid Layout */
.recognition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Changed from 3 to 4 columns */
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px; /* Increased max-width to accommodate 4 cards */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Responsive adjustments for 4-column layout */
@media (max-width: 1400px) {
    .recognition-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .recognition-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .recognition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 600px) {
    .recognition-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.recognition-card {
    position: relative;
    background: rgba(var(--main-dark-alt), 0.8);
    border: 1px solid var(--dark-grey);
    border-radius: var(--med-radius);
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Light mode card styling */
html.light .recognition-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--light-grey);
    color: var(--main-dark);
}

.recognition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(143, 211, 244, 0.15), rgba(196, 231, 101, 0.15), rgba(250, 219, 93, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--med-radius);
}

.recognition-card:hover {
    transform: translateY(-10px);
    border-color: #8FD3F4;
    box-shadow: 0 8px 25px rgb(232 226 227 / 40%);
}

html.light .recognition-card:hover {
    box-shadow: 0 8px 25px rgb(232 226 227 / 40%);
}

.recognition-card:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 3px solid var(--dark-grey);
    transition: all 0.3s ease;
}

html.light .card-image {
    border-color: var(--light-grey);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recognition-card:hover .card-image {
    border-color: var(--primary-color);
}

.recognition-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.card-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--main-light);
    margin-bottom: 8px;
}

html.light .card-name {
    color: var(--main-dark);
}

.card-title {
    font-size: 1rem;
    color: var(--dark-grey60);
    margin-bottom: 15px;
}

html.light .card-title {
    color: var(--light-grey60);
}

.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8FD3F4, #C4E765, #FADB5D);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Modal Styles */
.recognition-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 20px 0;
}

.recognition-modal.show {
    opacity: 1;
    visibility: visible;
}

/* Prevent background scrolling when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Blur effect for background content */
.modal-blur-bg {
    filter: blur(8px);
    transition: filter 0.4s ease;
}

.modal-container {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0;
    max-width: 650px;
    width: 90%;
    max-height: none;
    overflow: visible;
    position: relative;
    backdrop-filter: blur(30px);
    transform: scale(0.8) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
}

html.light .modal-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.95));
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--main-dark);
}

.recognition-modal.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 15;
    backdrop-filter: blur(10px);
}

html.light .modal-close {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

.modal-close:hover {
    background: rgba(229, 24, 55, 0.2);
    color: #e51837;
    transform: scale(1.1) rotate(90deg);
    border: 1px solid rgba(229, 24, 55, 0.3);
}

.modal-content {
    text-align: center;
    padding: 40px;
    overflow-y: visible;
    overflow-x: hidden;
    max-height: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: auto;
}

.modal-header {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html.light .modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.modal-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #8FD3F4, #C4E765, #FADB5D, #F0A3B9, #BCAEDC, #9ABFFB);
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 10px 30px rgba(196, 231, 101, 0.3);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-image:hover img {
    transform: scale(1.05);
}

.modal-name {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8FD3F4, #C4E765, #FADB5D, #F0A3B9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradientShift 3s ease-in-out infinite;
}

html.light .modal-name {
    background: linear-gradient(135deg, #8FD3F4, #C4E765, #FADB5D, #F0A3B9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

html.light .modal-details {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

html.light .detail-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
}

html.light .detail-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.detail-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #C4E765;
    border-radius: 50%;
}

html.light .detail-label {
    color: rgba(0, 0, 0, 0.7);
}

.detail-value {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
}

html.light .detail-value {
    color: #000000;
}

.detail-value a {
    color: #9ABFFB;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.detail-value a:hover {
    color: #F0A3B9;
    background: rgba(143, 211, 244, 0.1);
    transform: translateY(-1px);
}

.detail-value a:hover::before {
    left: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html.light .social-links {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

html.light .social-link {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    border-color: rgba(0, 0, 0, 0.1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #8FD3F4, #C4E765, #FADB5D);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-8px) scale(1.05);
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(196, 231, 101, 0.4);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.social-link:nth-child(1):hover {
    box-shadow: 0 15px 30px rgba(33, 37, 41, 0.4);
}

.social-link:nth-child(2):hover {
    box-shadow: 0 15px 30px rgba(10, 102, 194, 0.4);
}

/* Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .recognition-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .recognition-title {
        font-size: 2.5rem;
    }
    
    .modal-container {
        width: 95%;
        margin: 20px 10px;
        max-height: 90vh;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-name {
        font-size: 2rem;
    }
    
    .modal-image {
        width: 140px;
        height: 140px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 0;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .recognition-grid {
        grid-template-columns: 1fr;
    }
    
    .recognition-title {
        font-size: 2rem;
    }
    
    .card-image {
        width: 100px;
        height: 100px;
    }
    
    .modal-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-height: none;
    }
    
    .modal-content {
        padding: 25px 15px;
        height: 100%;
        overflow-y: auto;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-name {
        font-size: 1.8rem;
    }
    
    .modal-image {
        width: 120px;
        height: 120px;
    }
    
    .modal-details {
        padding: 20px;
    }
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8FD3F4, #C4E765);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(143, 211, 244, 0.3);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c41230, #3db8aa);
}

/* Ensure modal container allows content scrolling */
.modal-container {
    overflow: visible;
}

/* Light mode scrollbar */
html.light .modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

html.light .modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8FD3F4, #C4E765);
}
