/**
 * INFO TOOL STYLES
 * Comprehensive information dialog with copy functionality and video links
 */

#info-tool-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

#info-tool-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
}

#info-tool-dialog {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: infoDialogSlideIn 0.3s ease-out;
}

@keyframes infoDialogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header */
#info-tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

#info-tool-icon {
    font-size: 28px;
}

#info-tool-title {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.info-tool-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.info-tool-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Navigation */
#info-tool-navigation {
    display: flex;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
}

.info-nav-btn {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.info-nav-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.info-nav-btn.active {
    background: white;
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
}

/* Content Area */
#info-tool-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: white;
}

.info-section {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.info-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-left: 4px solid #8b5cf6;
    border-radius: 0 8px 8px 0;
}

.info-points {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.info-points li {
    padding: 12px 0 12px 36px;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.info-points li:last-child {
    border-bottom: none;
}

.info-points li::before {
    content: 'check_circle';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0;
    top: 12px;
    color: #10b981;
    font-size: 20px;
}

/* Detail Boxes */
.info-detail-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.detail-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.copy-btn {
    background: #f3f4f6;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    background: #8b5cf6;
    color: white;
}

.detail-content {
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Comparison Table */
.info-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

.info-comparison-table th,
.info-comparison-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.info-comparison-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.info-comparison-table tr:nth-child(even) {
    background: #f9fafb;
}

.info-comparison-table tr:hover {
    background: #f3f4f6;
}

/* Citations */
.info-citations {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.info-citations h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #374151;
}

.info-citations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-citations li {
    padding: 8px 0;
}

.info-citations a {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 13px;
}

.info-citations a:hover {
    text-decoration: underline;
}

/* Footer */
#info-tool-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

#info-tool-video-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.video-info .material-symbols-outlined {
    color: #ef4444;
    font-size: 24px;
}

#video-title {
    font-weight: 500;
    color: #374151;
}

#video-duration {
    color: #6b7280;
    font-size: 13px;
}

.video-id {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.info-tool-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.info-tool-btn.secondary {
    background: white;
    color: #ef4444;
    border: 2px solid #ef4444;
}

.info-tool-btn.secondary:hover {
    background: #fef2f2;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    #info-tool-dialog {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }

    #info-tool-header {
        padding: 16px;
    }

    #info-tool-title {
        font-size: 16px;
    }

    .info-nav-btn {
        padding: 12px;
        font-size: 12px;
    }

    #info-tool-content {
        padding: 16px;
    }

    .info-comparison-table {
        font-size: 11px;
    }

    .info-comparison-table th,
    .info-comparison-table td {
        padding: 8px;
    }

    #info-tool-video-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-id {
        margin-left: 0;
    }
}

/* Help Button (for triggering info tool) */
.info-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.info-help-btn:hover {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.info-help-btn .material-symbols-outlined {
    font-size: 16px;
}
