/**
 * Partner modal styles
 *
 * @package Trezentorres
 */

/* Partner Modal Overlay */
.partner-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.partner-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dark .modal-content {
    background: #1f2937;
}

.partner-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dark .modal-header {
    border-bottom-color: #374151;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.dark .modal-title {
    color: #e5e7eb;
}

/* Close Button */
.close-modal {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #1f2937;
    background: #f3f4f6;
    border-radius: 8px;
}

.dark .close-modal:hover {
    color: #e5e7eb;
    background: #374151;
}

/* Modal Body */
.modal-body {
    padding: 2rem;
}

/* Partner Details */
.partner-details {
    text-align: center;
}

.partner-logo-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
}

.partner-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.dark .partner-name {
    color: #e5e7eb;
}

.partner-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dark .partner-description {
    color: #9ca3af;
}

.partner-info {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.dark .partner-info {
    background: #374151;
}

.partner-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.dark .partner-info-item {
    color: #d1d5db;
}

.partner-info-item:last-child {
    margin-bottom: 0;
}

/* Certifications Tooltip */
.certification-badge {
    position: relative;
    cursor: help;
}

.cert-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    max-width: 300px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #1f2937;
}

.dark .cert-tooltip {
    background: #374151;
}

.dark .cert-tooltip::after {
    border-top-color: #374151;
}

/* Partner Grid in Modal */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.partner-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dark .partner-grid-item {
    background: #374151;
}

.partner-grid-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.dark .partner-grid-item:hover {
    background: #4b5563;
}

.partner-grid-item img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.partner-grid-item span {
    font-size: 0.8rem;
    color: #4b5563;
    text-align: center;
}

.dark .partner-grid-item span {
    color: #d1d5db;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.partner-modal.active .modal-content {
    animation: modalFadeIn 0.3s ease;
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dark .modal-content::-webkit-scrollbar-track {
    background: #374151;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.dark .modal-content::-webkit-scrollbar-thumb {
    background: #555;
}

.dark .modal-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}
