/* White Theme Update - Complete website overhaul */

:root {
    --bg-light: #ffffff;
    --bg-section: #ffffff;
    --border-light: #f0f0f0;
}

/* Global White Theme */
body {
    background: #ffffff;
}

section {
    background: #ffffff;
}

/* Hero Section - White */
.hero {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

/* Features Section - White */
.features {
    background: #ffffff;
    padding: 80px 0;
}

/* AI Demo Section - White Theme */
.ai-showcase-enhanced {
    background: #ffffff;
    padding: 80px 0;
}

/* Implementation Timeline - White */
.implementation-enhanced {
    background: #ffffff;
}

/* Security Section - White & Single Row */
.security-enhanced {
    background: #ffffff;
    padding: 80px 0;
}

.security-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.security-card-animated {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.security-card-animated:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.security-card-animated h3 {
    font-size: 1rem;
    margin-top: 1rem;
}

.security-card-animated p {
    font-size: 0.875rem;
}

/* Why Choose Section - White */
.why-classcore-enhanced {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

/* Resources Section - White */
.resources-enhanced {
    background: #ffffff;
    padding: 80px 0;
}

.resource-card-animated {
    background: #ffffff;
    border: 1px solid #f0f0f0;
}

/* FAQ Section - White */
.faq-section {
    background: #ffffff;
    padding: 80px 0;
    border-top: 1px solid #f0f0f0;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
}

/* CTA Section - White with subtle gradient */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-top: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.cta-section::before,
.cta-section::after {
    display: none;
}

.demo-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.form-note {
    color: var(--text-light);
}

/* Safari Browser Frame for AI Demo */
.browser-frame-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.teacher-illustration {
    position: absolute;
    left: -150px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 180px;
    z-index: 10;
}

.teacher-figure {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    position: relative;
}

.teacher-figure::after {
    content: '👩‍🏫';
    font-size: 2.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.teacher-body {
    background: #3b82f6;
    width: 80px;
    height: 100px;
    border-radius: 20px 20px 0 0;
    margin: 0 auto;
}

.thought-bubble {
    position: absolute;
    right: -80px;
    top: -20px;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 0.875rem;
    animation: float 3s ease infinite;
}

.thought-bubble::after {
    content: '';
    position: absolute;
    left: -10px;
    bottom: 10px;
    width: 0;
    height: 0;
    border-right: 10px solid white;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.safari-browser {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.browser-header {
    background: linear-gradient(180deg, #f6f6f6 0%, #e8e8e8 100%);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d0d0d0;
}

.browser-controls {
    display: flex;
    gap: 8px;
    margin-right: 1rem;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #28ca42; }

.browser-address-bar {
    flex: 1;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lock-icon {
    color: #10b981;
    font-size: 0.875rem;
}

.browser-url {
    color: #6b7280;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.browser-content {
    background: #ffffff;
    height: 600px;
    overflow: hidden;
    position: relative;
}

/* Compact AI Detection Interface */
.ai-detection-interface {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    height: 100%;
    background: #fafafa;
}

.student-essay-panel {
    background: white;
    padding: 1.5rem;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
}

.essay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.student-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-pic {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.student-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.essay-timestamp {
    color: var(--text-light);
    font-size: 0.75rem;
}

.essay-doc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.essay-paragraph {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text);
    padding: 0.75rem;
    border-radius: 6px;
    position: relative;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.essay-paragraph.scanning {
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: scanWave 2s linear infinite;
}

@keyframes scanWave {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.essay-paragraph.ai-detected {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    animation: highlightFound 0.5s ease;
}

.essay-paragraph.plagiarism-detected {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
    animation: highlightFound 0.5s ease;
}

.essay-paragraph.original {
    background: #f0fdf4;
    border-left: 3px solid #10b981;
}

@keyframes highlightFound {
    0% { transform: scale(1); background: white; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.detection-label {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    animation: fadeInLabel 0.5s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInLabel {
    to { opacity: 1; }
}

.ai-label {
    background: #f59e0b;
    color: white;
}

.source-label {
    background: #ef4444;
    color: white;
}

/* Compact Analysis Panel */
.ai-analysis-panel {
    background: #fafafa;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analysis-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #dcfce7;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #166534;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Compact Score Display */
.integrity-score-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
}

.score-visual {
    width: 120px;
    height: 120px;
    position: relative;
}

.score-ring {
    width: 100%;
    height: 100%;
}

.ring-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: fillRing 2s ease forwards;
    animation-delay: 1s;
}

@keyframes fillRing {
    to { stroke-dashoffset: 99; }
}

.score-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-percent {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.score-desc {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Compact Detection Stats */
.detection-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.stat-card {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stat-icon.original { background: #dcfce7; }
.stat-icon.ai { background: #fef3c7; }
.stat-icon.plagiarized { background: #fee2e2; }
.stat-icon.mixed { background: #e0e7ff; }

.stat-details {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

/* Source Match */
.source-matches {
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.matches-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8rem;
}

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

.match-source {
    flex: 1;
    color: var(--text);
}

.match-confidence {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Action Buttons */
.teacher-actions-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.action-btn-compact {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.action-btn-compact:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Timeline Mini Animations */
.timeline-enhanced {
    position: relative;
}

.timeline-milestone {
    position: absolute;
    top: 65px;
    width: 30px;
    height: 30px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: pulse 2s ease infinite;
}

.timeline-milestone:nth-child(1) { left: 12.5%; animation-delay: 0s; }
.timeline-milestone:nth-child(2) { left: 37.5%; animation-delay: 0.5s; }
.timeline-milestone:nth-child(3) { left: 62.5%; animation-delay: 1s; }
.timeline-milestone:nth-child(4) { left: 87.5%; animation-delay: 1.5s; }

.milestone-icon {
    font-size: 0.875rem;
}

.timeline-cards {
    position: relative;
    z-index: 4;
}

.timeline-card {
    background: white;
    border: 1px solid #f0f0f0;
}

.timeline-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .security-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teacher-illustration {
        display: none;
    }
    
    .ai-detection-interface {
        grid-template-columns: 1fr;
    }
    
    .browser-content {
        height: auto;
        min-height: 800px;
    }
}

@media (max-width: 768px) {
    .security-grid-enhanced {
        grid-template-columns: 1fr;
    }
    
    .detection-stats {
        grid-template-columns: 1fr;
    }
    
    .teacher-actions-compact {
        grid-template-columns: 1fr;
    }
}