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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

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

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.diff-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.text-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #e1e5e9;
}

.input-group {
    padding: 20px;
    border-right: 1px solid #e1e5e9;
}

.input-group:last-child {
    border-right: none;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.diff-display {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
    max-height: 500px;
}

.diff-display:empty::before {
    content: attr(placeholder);
    color: #6c757d;
    font-style: italic;
}

.diff-output {
    padding: 20px;
}

.diff-output label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .text-inputs {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .input-group:last-child {
        border-bottom: none;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Diff highlighting classes */
.diff-added {
    background-color: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
    padding-left: 8px;
    margin: 2px 0;
}

.diff-removed {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
    padding-left: 8px;
    margin: 2px 0;
}

.diff-unchanged {
    background-color: transparent;
    color: #495057;
    padding-left: 8px;
    margin: 2px 0;
}

.diff-line-number {
    color: #6c757d;
    font-weight: bold;
    margin-right: 8px;
    user-select: none;
}

/* Content Sections */
.content-section {
    margin-top: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

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

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.content-card h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.content-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-card ul, .content-card ol {
    color: #555;
    line-height: 1.7;
    margin-left: 20px;
}

.content-card li {
    margin-bottom: 8px;
}

.content-card strong {
    color: #2c3e50;
}

/* Diff Examples in Content */
.diff-example {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.diff-example.added {
    background-color: #d4edda;
    color: #155724;
}

.diff-example.removed {
    background-color: #f8d7da;
    color: #721c24;
}

.diff-example.unchanged {
    background-color: #e9ecef;
    color: #495057;
}

.diff-example-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.diff-example-line {
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
}

.diff-example-line.added {
    background-color: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.diff-example-line.removed {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.diff-example-line.unchanged {
    background-color: transparent;
    color: #495057;
    border-left: 3px solid #6c757d;
}

/* Responsive adjustments for content */
@media (max-width: 768px) {
    .content-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .content-card h2 {
        font-size: 1.3rem;
    }
}

/* Ad Containers */
.ad-container {
    margin: 30px 0;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.ad-placeholder {
    color: #6c757d;
    font-style: italic;
}

.ad-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* Responsive ad adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 20px 0;
        min-height: 60px;
        padding: 15px;
    }
} 