@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    color: #1f2937;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #8b5cf6;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.progress-bar {
    width: 120px;
    height: 4px;
    background: #e5e5f7;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #8b5cf6;
    transition: width 0.3s ease;
}

/* Section Layout */
section {
    min-height: calc(100vh - 80px);
    padding: 60px 0;
}

section:not(:target) {
    display: none;
}

section:target,
section:first-child {
    display: block;
}



/* Typography */
h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
    text-align: center;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

/* Buttons */
.btn-primary {
    background: #8b5cf6;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 12px 24px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    background: #ffffff;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    background: #ffffff;
    cursor: pointer;
}

/* Side Panel */
.side-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100vh;
    background: #f8f7ff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    padding: 24px;
}

.side-panel.open {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    line-height: 1;
}

/* Screen-specific styles */
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.url-input-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.success-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.keyword-tag {
    background: #ede9fe;
    color: #5b21b6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}



.radio-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.radio-option {
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s;
}

.radio-option input[type="radio"]:checked + .radio-visual {
    border-color: #8b5cf6;
    background: #f3f4f6;
}

.radio-visual img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.split-view {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    height: 600px;
}

.article-preview {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    overflow-y: auto;
}

.seo-checklist {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}

.checklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 6px;
    margin: 4px -8px;
    transition: background-color 0.3s ease;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    transition: all 0.3s ease;
}

.status-indicator.red {
    background: #ef4444;
}

.status-indicator.checking {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
}

.checking-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #8b5cf6;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

.status-indicator.validated {
    background: #10b981;
    animation: pulse-success 0.6s ease;
}

.status-indicator.validated .checking-spinner {
    display: none;
}

.status-indicator.validated::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse-success {
    0% { 
        background: #f3f4f6;
        transform: scale(1);
    }
    50% { 
        background: #10b981;
        transform: scale(1.1);
    }
    100% { 
        background: #10b981;
        transform: scale(1);
    }
}



.share-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
}

.share-icon:hover {
    background: #e5e7eb;
}

.loading-states {
    display: none;
    text-align: center;
    margin-top: 24px;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.loading-fill {
    height: 100%;
    background: #8b5cf6;
    width: 0%;
    animation: loading 3s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

.status-dot.connected {
    background: #10b981;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background: #1f2937;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .progress-info {
        order: -1;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .split-view {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .radio-group {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .side-panel {
        width: 100%;
        right: -100%;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
} 