/* Modern SEO Analyzer - Clean Horizontal Layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --logo-blue: #0ea5e9;
    --logo-orange: #f97316;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin: 0;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    padding: 6px 12px;
    background: transparent;
    color: var(--logo-blue);
    border: 1px solid var(--logo-blue);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--logo-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-trial {
    padding: 6px 12px;
    background: var(--logo-orange);
    color: white;
    border: 1px solid var(--logo-orange);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-trial:hover {
    background: #ea580c;
    border-color: #ea580c;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Search Section */
.search-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.url-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.analyze-button {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.analyze-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Results Section */
.results-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.results-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 600px;
}

/* Left Panel - Website Preview */
.preview-panel {
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.website-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

/* Monitor Design */
.monitor {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monitor-screen {
    width: 200px;
    height: 140px;
    background: #2d3748;
    border: 8px solid #4a5568;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.monitor-screen::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #2d3748;
    border-radius: 50%;
}

.no-preview {
    color: #a0aec0;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.monitor-stand {
    width: 40px;
    height: 30px;
    background: #4a5568;
    margin-top: 4px;
    border-radius: 0 0 4px 4px;
}

.monitor-base {
    width: 80px;
    height: 8px;
    background: #4a5568;
    border-radius: 4px;
    margin-top: 2px;
}

/* Site Info */
.site-info {
    text-align: center;
}

.site-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-break: break-all;
}

.site-url {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    word-break: break-all;
}

.analysis-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* IP Info Styles */
.ip-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.ip-address {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 11px;
}

.ip-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.ip-value {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

/* Overall Status */
.overall-status {
    margin-top: auto;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.status-item.success {
    background: rgb(16 185 129 / 0.1);
    color: var(--success-color);
    border: 1px solid rgb(16 185 129 / 0.2);
}

.status-item.warning {
    background: rgb(245 158 11 / 0.1);
    color: var(--warning-color);
    border: 1px solid rgb(245 158 11 / 0.2);
}

.status-item.error {
    background: rgb(239 68 68 / 0.1);
    color: var(--error-color);
    border: 1px solid rgb(239 68 68 / 0.2);
}

.status-icon {
    font-size: 16px;
}

.status-text {
    flex: 1;
    margin-left: 8px;
    font-size: 14px;
}

.status-score {
    font-size: 18px;
    font-weight: 700;
}

/* Right Panel - Analysis Results */
.analysis-panel {
    padding: 24px;
    overflow-y: auto;
    max-height: 600px;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.analysis-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.analysis-summary {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Analysis List */
.analysis-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analysis-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.2s ease;
}

.analysis-item:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.item-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-score {
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 8px;
}

.analysis-item.success .item-score {
    color: var(--success-color);
}

.analysis-item.warning .item-score {
    color: var(--warning-color);
}

.analysis-item.error .item-score {
    color: var(--error-color);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}

.progress-fill.success {
    background: var(--success-color);
}

.progress-fill.warning {
    background: var(--warning-color);
}

.progress-fill.error {
    background: var(--error-color);
}

.item-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Item Actions and Details */
.item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expand-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.analysis-item:hover .expand-icon {
    color: var(--text-secondary);
}

.item-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.details-content {
    font-size: 13px;
    line-height: 1.5;
}

/* DNS Analysis Styles */
.dns-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.dns-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dns-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.dns-records, .dns-issues, .dns-recommendations, .dns-score {
    margin-bottom: 12px;
}

.dns-record, .dns-issue, .recommendation {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
}

.dns-record {
    color: var(--text-primary);
}

.dns-issue {
    color: var(--warning-color);
}

.recommendation {
    color: var(--text-secondary);
    padding-left: 8px;
}

.score-breakdown {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 8px;
    font-size: 12px;
}

.score-breakdown div {
    padding: 2px 0;
}

/* Analysis Item Cursor */
.analysis-item {
    cursor: pointer;
}

.analysis-item:hover {
    border-color: var(--primary-color);
}

/* Robots Analysis Styles */
.robots-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.robots-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.robots-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.robots-section {
    margin-bottom: 12px;
}

.robots-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.robots-item.warning {
    color: var(--warning-color);
}

.robots-item.error {
    color: var(--error-color);
}

/* User-Agent Analysis Styles */
.useragent-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.useragent-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.useragent-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.ua-section {
    margin-bottom: 12px;
}

.ua-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.ua-item.success {
    color: var(--success-color);
}

.ua-item.warning {
    color: var(--warning-color);
}

.ua-item.error {
    color: var(--error-color);
}

/* HTTP Analysis Styles */
.http-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.http-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.http-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.http-section {
    margin-bottom: 12px;
}

.http-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

/* Redirect Analysis Styles */
.redirect-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.redirect-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.redirect-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.redirect-section {
    margin-bottom: 12px;
}

.redirect-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

/* Content Analysis Styles */
.content-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.content-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.content-section {
    margin-bottom: 12px;
}

.content-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.content-item.warning {
    color: var(--warning-color);
}

/* Image Analysis Styles */
.image-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.image-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.image-section {
    margin-bottom: 12px;
}

.image-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.image-item.warning {
    color: var(--warning-color);
}

/* Performance Analysis Styles */
.performance-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.performance-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.performance-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.perf-section {
    margin-bottom: 12px;
}

.perf-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.perf-item.warning {
    color: var(--warning-color);
}

/* Code Analysis Styles */
.code-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.code-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.code-section {
    margin-bottom: 12px;
}

.code-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.code-item.warning {
    color: var(--warning-color);
}

/* HTTPS Analysis Styles */
.https-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.https-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.https-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.https-section {
    margin-bottom: 12px;
}

.https-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.https-item.success {
    color: var(--success-color);
}

/* Accessibility Analysis Styles */
.accessibility-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.accessibility-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accessibility-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.access-section {
    margin-bottom: 12px;
}

.access-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.access-item.success {
    color: var(--success-color);
}

.access-item.warning {
    color: var(--warning-color);
}

/* Spam Analysis Styles */
.spam-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.spam-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spam-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.spam-section {
    margin-bottom: 12px;
}

.spam-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.spam-item.success {
    color: var(--success-color);
}

.spam-item.warning {
    color: var(--warning-color);
}

/* Text/HTML Ratio Analysis Styles */
.texthtml-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.texthtml-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.texthtml-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.texthtml-section {
    margin-bottom: 12px;
}

.texthtml-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.texthtml-item.success {
    color: var(--success-color);
}

.texthtml-item.warning {
    color: var(--warning-color);
}

/* GZIP Compression Analysis Styles */
.gzip-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.gzip-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gzip-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.gzip-section {
    margin-bottom: 12px;
}

.gzip-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.gzip-item.success {
    color: var(--success-color);
}

.gzip-item.warning {
    color: var(--warning-color);
}

.gzip-item.error {
    color: var(--error-color);
}

/* Page Speed Analysis Styles */
.pagespeed-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 8px 0;
}

.pagespeed-analysis h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagespeed-analysis h5 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.pagespeed-section {
    margin-bottom: 12px;
}

.pagespeed-item {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.pagespeed-item.success {
    color: var(--success-color);
}

.pagespeed-item.warning {
    color: var(--warning-color);
}

.pagespeed-item.error {
    color: var(--error-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .results-container {
        grid-template-columns: 1fr;
    }
    
    .preview-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    
    .analysis-panel {
        max-height: none;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .analyze-button {
        width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .header-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .btn-login,
    .btn-trial {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .monitor-screen {
        width: 160px;
        height: 112px;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-score {
        margin-left: 0;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .header,
    .search-section,
    .results-section {
        border-radius: var(--radius-md);
    }
    
    .header {
        padding: 16px;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .preview-panel,
    .analysis-panel {
        padding: 16px;
    }
    
    .monitor-screen {
        width: 140px;
        height: 98px;
    }
    
    .site-title {
        font-size: 14px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-item {
    animation: fadeInUp 0.3s ease-out;
}

.analysis-item:nth-child(even) {
    animation-delay: 0.05s;
}

.analysis-item:nth-child(odd) {
    animation-delay: 0.1s;
}

/* Scrollbar */
.analysis-panel::-webkit-scrollbar {
    width: 6px;
}

.analysis-panel::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.analysis-panel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.analysis-panel::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Loading Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 300px;
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 16px;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 2px;
    animation: loadingProgress 3s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Button Loading State */
.analyze-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.analyze-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Pulse Animation for Analysis Items */
.analysis-item.analyzing {
    background: linear-gradient(90deg, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
    background-size: 200% 100%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Step-by-step loading indicators */
.loading-steps {
    margin-top: 20px;
    text-align: left;
    max-width: 300px;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.loading-step.active {
    color: var(--primary-color);
    font-weight: 500;
}

.loading-step.completed {
    color: var(--success-color);
}

.loading-step-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.loading-step.active .loading-step-icon {
    background: var(--primary-color);
    color: white;
    animation: pulse-icon 1s ease-in-out infinite;
}

.loading-step.completed .loading-step-icon {
    background: var(--success-color);
    color: white;
}

.loading-step:not(.active):not(.completed) .loading-step-icon {
    background: var(--border-color);
    color: var(--text-muted);
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
