/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header Styles */
.report-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 16px;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.report-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.15"/><circle cx="20" cy="60" r="0.8" fill="white" opacity="0.1"/><circle cx="80" cy="30" r="0.6" fill="white" opacity="0.12"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-2%) translateY(-2%) rotate(0deg); }
    33% { transform: translateX(0%) translateY(-4%) rotate(1deg); }
    66% { transform: translateX(-3%) translateY(-1%) rotate(-1deg); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.report-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    space-y: 40px;
}

/* Option Sections */
.option-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 6px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.option-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.option-section[data-option="1"] {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.option-section[data-option="2"] {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.option-section[data-option="3"] {
    border-left-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.option-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommended-badge {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px #10b981; }
    to { box-shadow: 0 0 20px #10b981, 0 0 30px #10b981; }
}

.option-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.how-it-works, .student-experience {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.how-it-works h3, .student-experience h3 {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
}

.student-experience ul {
    list-style: none;
    padding-left: 0;
}

.student-experience li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 25px;
}

.student-experience li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #10b981;
    font-weight: bold;
}

.student-experience li:last-child {
    border-bottom: none;
}

/* Recommendation Section */
.recommendation-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 40px;
    border-radius: 16px;
    margin: 40px 0;
    border: 2px solid #f59e0b;
}

.recommendation-section h2 {
    color: #92400e;
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
}

.benefit-card h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-card ul {
    list-style: none;
    padding-left: 0;
}

.benefit-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 25px;
}

.benefit-card li:before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 8px;
    color: #4f46e5;
    font-size: 0.8rem;
}

.benefit-card li:last-child {
    border-bottom: none;
}

.bottom-line {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.bottom-line p {
    margin-bottom: 10px;
}

.note {
    font-style: italic;
    color: #6b7280;
}

/* Pros and Cons Section */
.pros-cons-section {
    margin: 40px 0;
}

.pros-cons-section h2 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.pros-cons-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pros-cons-card:hover {
    transform: translateY(-5px);
}

.pros-cons-card h3 {
    background: #4f46e5;
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pros-cons-content {
    padding: 25px;
}

.pros, .cons {
    margin-bottom: 20px;
}

.pros h4 {
    color: #10b981;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cons h4 {
    color: #ef4444;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros ul, .cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li, .cons li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
}

.pros li:before {
    content: '+';
    position: absolute;
    left: 0;
    top: 6px;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.cons li:before {
    content: '−';
    position: absolute;
    left: 0;
    top: 6px;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
}

/* AI Analysis Section */
.ai-analysis-section {
    margin: 40px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 2px solid #0284c7;
}

.ai-analysis-section h2 {
    color: #0c4a6e;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.analysis-intro {
    text-align: center;
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.ai-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.ai-button {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ai-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ai-button.active {
    background: #f8fafc;
    border-color: #4f46e5;
}

.grok-button {
    border-left: 4px solid #ff6b6b;
}

.grok-button:hover,
.grok-button.active {
    border-left-color: #ee5a24;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.gemini-button {
    border-left: 4px solid #4834d4;
}

.gemini-button:hover,
.gemini-button.active {
    border-left-color: #686de0;
    box-shadow: 0 8px 25px rgba(72, 52, 212, 0.2);
}

.ai-button > i:first-child {
    font-size: 1.8rem;
    min-width: 40px;
    text-align: center;
}

.grok-button > i:first-child {
    color: #ff6b6b;
}

.gemini-button > i:first-child {
    color: #4834d4;
}

.button-content {
    flex: 1;
}

.button-content h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.button-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.ai-button.active .toggle-icon {
    transform: rotate(180deg);
}

/* Analysis Content */
.analysis-content {
    margin-top: 20px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4f46e5;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.analysis-header i {
    font-size: 1.5rem;
}

.analysis-header h3 {
    color: #1f2937;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

#grok-analysis .analysis-header i {
    color: #ff6b6b;
}

#grok-analysis {
    border-left-color: #ff6b6b;
}

#gemini-analysis .analysis-header i {
    color: #4834d4;
}

#gemini-analysis {
    border-left-color: #4834d4;
}

.analysis-text {
    line-height: 1.7;
}

.analysis-text p {
    margin-bottom: 15px;
    text-align: justify;
    color: #374151;
}

.analysis-text h4 {
    color: #1f2937;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-buttons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 15px;
    }
    
    .report-header {
        padding: 30px 15px;
    }
    
    .report-header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .option-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ai-analysis-section {
        padding: 25px 20px;
    }
    
    .ai-buttons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ai-button {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .analysis-content {
        padding: 20px 15px;
    }
    
    .recommendation-section {
        padding: 25px 20px;
    }
    
    .benefit-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header-icon {
        font-size: 2rem;
    }
    
    .report-header h1 {
        font-size: 1.5rem;
    }
    
    .option-section {
        padding: 20px 15px;
    }
    
    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .option-header h2 {
        font-size: 1.2rem;
    }
    
    .pros-cons-card h3 {
        padding: 15px;
        font-size: 1rem;
    }
    
    .pros-cons-content {
        padding: 20px;
    }
    
    .ai-button > i:first-child {
        font-size: 1.5rem;
    }
    
    .button-content h3 {
        font-size: 1.1rem;
    }
    
    .button-content p {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .ai-analysis-section {
        display: none;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .report-header {
        background: #4f46e5 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Accessibility Improvements */
.ai-button:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for analysis content */
.analysis-content {
    animation: fadeInUp 0.5s ease-out;
}

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