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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
}

.version {
    font-size: 14px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    vertical-align: super;
}

.subtitle {
    color: #718096;
    font-size: 16px;
    font-weight: 400;
}

/* Main Content */
main {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Input Section */
.input-section {
    margin-bottom: 40px;
}

.input-wrapper label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #4a5568;
    font-size: 16px;
}

.input-wrapper label i {
    color: #667eea;
    margin-right: 8px;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

#urlInput {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

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

#analyzeBtn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#analyzeBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.example-urls {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #718096;
    font-size: 14px;
}

.example-btn {
    padding: 6px 12px;
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.example-btn:hover {
    background: #e2e8f0;
    border-color: #a0aec0;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 60px 0;
}

.loading-animation {
    position: relative;
    margin-bottom: 30px;
}

.scanner {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border: 3px solid #667eea;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.scanner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-text h3 {
    color: #2d3748;
    font-size: 24px;
    margin-bottom: 10px;
}

.loading-text p {
    color: #718096;
    font-size: 16px;
}

.progress-bar {
    width: 300px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0;
    animation: progress 3s ease-in-out;
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Results Section */
.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.analysis-header h2 {
    font-size: 28px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.analysis-header h2 i {
    color: #667eea;
}

.export-btn {
    padding: 10px 20px;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.export-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
}

/* Score Dashboard */
.score-dashboard {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f6f9fc 0%, #e9ecef 100%);
    border-radius: 16px;
}

.score-card {
    text-align: center;
}

.score-circle {
    position: relative;
    display: inline-block;
}

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

.score-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
}

.score-label {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.score-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-item i {
    font-size: 24px;
    color: #667eea;
    width: 30px;
}

.score-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}

.mini-progress {
    width: 200px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.analysis-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

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

.analysis-card h3 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-card h3 i {
    color: #667eea;
    font-size: 20px;
}

/* Meta Tags List */
.meta-tags-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-tag-item {
    padding: 12px;
    background: #f7fafc;
    border-left: 3px solid #667eea;
    border-radius: 6px;
}

.meta-tag-name {
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
    margin-bottom: 4px;
}

.meta-tag-content {
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

.meta-tag-status {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 500;
}

.status-good {
    background: #c6f6d5;
    color: #22543d;
}

.status-warning {
    background: #fed7d7;
    color: #742a2a;
}

.status-info {
    background: #bee3f8;
    color: #2c5282;
}

/* Suggestions List */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggestion-item {
    padding: 15px;
    background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.suggestion-priority {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 8px;
}

.priority-high {
    background: #ff6b6b;
    color: white;
}

.priority-medium {
    background: #ffd93d;
    color: #333;
}

.priority-low {
    background: #6bcf7f;
    color: white;
}

.suggestion-text {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

/* Keyword Cloud */
.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.keyword-tag {
    padding: 8px 16px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 20px;
    font-size: 14px;
    color: #4c51bf;
    font-weight: 500;
    transition: all 0.3s;
}

.keyword-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.keyword-tag.high-freq {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    font-size: 16px;
}

/* SEO Guides */
.seo-guides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.seo-guide {
    padding: 20px;
    border-radius: 10px;
}

.seo-guide.google {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.seo-guide.naver {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.seo-guide h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-guide ul {
    list-style: none;
}

.seo-guide li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.seo-guide li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* Competitor Analysis */
.competitor-analysis {
    background: #f7fafc;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.competitor-analysis h3 {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-chart {
    height: 300px;
    position: relative;
}

/* Action Items */
.action-items {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    padding: 30px;
}

.action-items h3 {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.action-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
    display: flex;
    align-items: start;
    gap: 12px;
}

.action-item i {
    color: #48bb78;
    font-size: 20px;
    margin-top: 2px;
}

.action-content h4 {
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 4px;
}

.action-content p {
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: white;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    main {
        padding: 20px;
    }
    
    .score-dashboard {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .seo-guides {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    #analyzeBtn {
        width: 100%;
        justify-content: center;
    }
}