* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.site-nav {
    border-bottom: 1px solid #1a2a2a;
    padding: 20px 0;
    margin-bottom: 40px;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #00cc66;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00ff88;
}

.nav-links a.current {
    color: #00ff88;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 3.5em;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.2em;
    font-weight: 300;
    color: #888;
    letter-spacing: 2px;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #fff;
}

.tool-subtitle {
    font-size: 1.2em;
    color: #00ff88;
    margin-bottom: 20px;
    font-weight: 500;
}

.tool-description {
    font-size: 1em;
    color: #888;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Diff Interface */
.diff-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.diff-box {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f1c1c 0%, #162626 100%);
    border: 1px solid #1a3535;
    border-radius: 12px;
    overflow: hidden;
}

.diff-box-header {
    background: linear-gradient(135deg, #0f1c1c 0%, #0a1515 100%);
    padding: 15px 20px;
    font-size: 0.95em;
    color: #00ff88;
    border-bottom: 1px solid #1a3535;
    font-weight: 600;
}

.diff-textarea {
    flex: 1;
    min-height: 300px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    border: none;
    background: transparent;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    resize: vertical;
    outline: none;
}

.diff-textarea:focus {
    background: rgba(0, 255, 136, 0.02);
}

.diff-textarea::placeholder {
    color: #555;
}

/* Visual Diff Display */
.diff-visual {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f1c1c 0%, #162626 100%);
    border: 1px solid #1a3535;
    border-radius: 12px;
    overflow: hidden;
}

.diff-visual-header {
    background: linear-gradient(135deg, #0f1c1c 0%, #0a1515 100%);
    padding: 15px 20px;
    font-size: 0.95em;
    color: #00ff88;
    border-bottom: 1px solid #1a3535;
    font-weight: 600;
}

.diff-visual-content {
    padding: 20px;
    background: #0a0a0a;
    min-height: 400px;
    overflow-y: auto;
}

.diff-result {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.diff-line {
    padding: 8px 12px;
    margin: 3px 0;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-word;
}

.diff-line.added {
    background: rgba(34, 197, 94, 0.15);
    border-left: 4px solid #22c55e;
    color: #f0fdf4;
}

.diff-line.removed {
    background: rgba(239, 68, 68, 0.15);
    border-left: 4px solid #ef4444;
    color: #fef2f2;
}

.diff-line.unchanged {
    background: transparent;
    color: #999;
}

/* Word-level highlighting within diff lines */
.word-removed {
    background: rgba(239, 68, 68, 0.35);
    color: #fef2f2;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.word-added {
    background: rgba(34, 197, 94, 0.35);
    color: #f0fdf4;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.diff-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #666;
    text-align: center;
    padding: 60px;
}

.diff-empty div:first-child {
    font-size: 4em;
    margin-bottom: 20px;
}

.diff-empty h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #00ff88;
}

.diff-empty p {
    color: #888;
    line-height: 1.8;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #0f1c1c 0%, #162626 100%);
    border: 1px solid #1a3535;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
}

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

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #00ff88;
    font-size: 1.1em;
}

.feature-description {
    font-size: 0.95em;
    color: #888;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    color: #444;
    font-size: 0.9em;
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid #1a2a2a;
}

footer a:hover {
    color: #00ff88 !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .diff-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.5em;
        letter-spacing: 2px;
    }

    .tool-header h1 {
        font-size: 2em;
    }

    .diff-textarea {
        min-height: 200px;
    }

    .diff-visual-content {
        min-height: 300px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-section {
        padding: 30px 20px;
    }
}
