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

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

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

header {
    color: white;
    margin-bottom: 40px;
    padding: 30px 0;
}

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

.header-content > div:first-child {
    text-align: center;
    flex: 1;
}

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

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.user-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-details span {
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    font-size: 12px;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.logout-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .user-info {
        width: 100%;
        justify-content: center;
    }
}

.input-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

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

#urlInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

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

#analyzeBtn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

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

#analyzeBtn:active {
    transform: translateY(0);
}

#analyzeBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
}

.results {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.url-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.url-header h2 {
    color: #667eea;
    font-size: 1.5rem;
    word-break: break-all;
    flex: 1;
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.export-btn {
    padding: 8px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.export-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tag-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.tag-item {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    transition: transform 0.2s;
}

.tag-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tag-name {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-counter {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: none;
}

.counter-good {
    background: #d1fae5;
    color: #065f46;
}

.counter-warning {
    background: #fef3c7;
    color: #92400e;
}

.counter-bad {
    background: #fee2e2;
    color: #991b1b;
}

.tag-value {
    color: #333;
    word-break: break-word;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.tag-value.empty {
    color: #999;
    font-style: italic;
}

.copy-btn {
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #5568d3;
}

.og-preview {
    margin-top: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.og-preview-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f0f0f0;
}

.og-preview-content {
    padding: 20px;
}

.og-preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.og-preview-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.og-preview-url {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
    text-transform: uppercase;
}

.seo-score-display {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.score-high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.score-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.score-low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.score-value {
    font-size: 48px;
    font-weight: 700;
    color: white;
}

.score-label {
    font-size: 14px;
    color: white;
    opacity: 0.9;
    margin-top: 5px;
}

.validation-section {
    margin-top: 25px;
}

.validation-section h4 {
    margin-bottom: 12px;
    color: #666;
    font-size: 16px;
}

.validation-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.6;
}

.validation-item.warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

.validation-item.recommendation {
    background: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.google-preview-card {
    max-width: 600px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.google-preview-url {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 4px;
}

.google-preview-title {
    font-size: 20px;
    font-weight: 400;
    color: #1a0dab;
    margin-bottom: 4px;
    line-height: 1.3;
}

.google-preview-description {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.6;
}

.og-preview-card {
    max-width: 500px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.og-preview-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f0f0f0;
}

.og-preview-text {
    padding: 20px;
}

.twitter-preview-card {
    max-width: 500px;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.twitter-preview-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f0f0f0;
}

.twitter-preview-text {
    padding: 15px;
}

.twitter-preview-title {
    font-size: 15px;
    font-weight: 600;
    color: #14171a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.twitter-preview-description {
    font-size: 14px;
    color: #657786;
    line-height: 1.5;
    margin-bottom: 8px;
}

.twitter-preview-site {
    font-size: 13px;
    color: #8899a6;
}

.structured-data-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.structured-data-header {
    background: #f8f9fa;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.structured-data-code {
    padding: 15px;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    line-height: 1.6;
    margin: 0;
}

.heading-item {
    padding: 10px 15px;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.tag-section {
    margin-bottom: 30px;
}

.ssr-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.ssr-status {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.ssr-good {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.ssr-bad {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.ssr-info {
    margin: 15px 0;
}

.ssr-metric {
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-radius: 4px;
    font-size: 14px;
}

.ssr-issues,
.ssr-warnings {
    margin-top: 15px;
}

.ssr-issue-item {
    padding: 10px 12px;
    margin-top: 8px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.ssr-issue-item.error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.ssr-issue-item.warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
    }

    #analyzeBtn {
        width: 100%;
    }

    .tabs {
        flex-direction: column;
        gap: 5px;
    }

    .tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
        padding-left: 15px;
    }

    .tab-btn.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }
}

