/* Technical SEO Health Reporter v2.0 - Modern CSS */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --critical-color: #dc2626;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tseohr-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
}

.tseohr-watermark {
    position: absolute;
    top: 15px;
    left: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tseohr-instagram-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 11px;
}

.tseohr-instagram-link:hover {
    color: white;
}

/* Header Styles */
.tseohr-header {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-large);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tseohr-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tseohr-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tseohr-header-icon {
    font-size: 48px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.tseohr-header-text {
    text-align: left;
}

.tseohr-title {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.tseohr-subtitle {
    font-size: 1.1em;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Audit Section */
.tseohr-audit-section {
    margin-bottom: 24px;
}

.tseohr-audit-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-large);
}

.tseohr-audit-form {
    max-width: 600px;
    margin: 0 auto;
}

.tseohr-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.tseohr-url-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    background: var(--card-background);
}

.tseohr-url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.tseohr-primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.tseohr-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.tseohr-primary-btn:active {
    transform: translateY(0);
}

.tseohr-form-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Loading Section */
.tseohr-loading-section {
    margin-bottom: 24px;
}

.tseohr-loading-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-large);
}

.tseohr-loading-spinner {
    margin-bottom: 24px;
}

.tseohr-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tseohr-progress-container {
    max-width: 400px;
    margin: 24px auto;
}

.tseohr-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tseohr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.tseohr-progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.tseohr-checking-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
}

.tseohr-checking-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius);
    background: var(--background-color);
    opacity: 0.5;
    transition: var(--transition);
}

.tseohr-checking-step.tseohr-step-active {
    opacity: 1;
    background: rgba(79, 70, 229, 0.1);
    border-left: 4px solid var(--primary-color);
}

.tseohr-step-icon {
    font-size: 18px;
}

.tseohr-step-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* Results Section */
.tseohr-results-section {
    margin-bottom: 24px;
}

.tseohr-results-header {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-large);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tseohr-results-title h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tseohr-audited-url {
    color: var(--text-secondary);
    font-weight: 500;
}

.tseohr-results-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tseohr-secondary-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tseohr-secondary-btn:hover {
    background: #0da271;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.tseohr-outline-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tseohr-outline-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tseohr-btn-icon {
    font-size: 16px;
}

/* Score Card */
.tseohr-score-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-large);
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tseohr-score-circle {
    position: relative;
    width: 140px;
    height: 140px;
}

.tseohr-score-progress {
    position: relative;
    width: 100%;
    height: 100%;
}

.tseohr-progress-ring {
    transform: rotate(-90deg);
}

.tseohr-progress-ring-background {
    fill: none;
    stroke: var(--border-color);
}

.tseohr-progress-ring-circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.tseohr-score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: 800;
    color: var(--text-primary);
}

.tseohr-score-content {
    flex: 1;
    min-width: 250px;
}

.tseohr-score-content h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tseohr-score-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tseohr-score-stats {
    display: flex;
    gap: 20px;
}

.tseohr-score-stat {
    text-align: center;
}

.tseohr-stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: 800;
    color: var(--text-primary);
}

.tseohr-stat-label {
    font-size: 0.875em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Priority Overview */
.tseohr-priority-overview-container {
    margin-bottom: 24px;
}

.tseohr-priority-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tseohr-priority-item {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.tseohr-priority-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.tseohr-priority-item.tseohr-priority-critical {
    border-top-color: var(--critical-color);
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
}

.tseohr-priority-item.tseohr-priority-high {
    border-top-color: var(--error-color);
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
}

.tseohr-priority-item.tseohr-priority-medium {
    border-top-color: var(--warning-color);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.tseohr-priority-item.tseohr-priority-low {
    border-top-color: var(--text-light);
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.tseohr-priority-count {
    font-size: 2em;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.tseohr-priority-item.tseohr-priority-critical .tseohr-priority-count {
    color: var(--critical-color);
}

.tseohr-priority-item.tseohr-priority-high .tseohr-priority-count {
    color: var(--error-color);
}

.tseohr-priority-item.tseohr-priority-medium .tseohr-priority-count {
    color: var(--warning-color);
}

.tseohr-priority-item.tseohr-priority-low .tseohr-priority-count {
    color: var(--text-light);
}

.tseohr-priority-label {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.tseohr-priority-desc {
    font-size: 0.875em;
    color: var(--text-secondary);
}

/* Results Grid */
.tseohr-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.tseohr-category-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.tseohr-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.tseohr-category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tseohr-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tseohr-category-icon {
    font-size: 20px;
}

.tseohr-category-title h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

.tseohr-category-score {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
}

.tseohr-category-stats {
    padding: 16px 24px;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.tseohr-stats-container {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.tseohr-stat-item {
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    min-width: 80px;
}

.tseohr-stat-good {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.tseohr-stat-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.tseohr-stat-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.tseohr-stat-count {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
}

.tseohr-stat-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tseohr-check-list {
    max-height: 400px;
    overflow-y: auto;
}

.tseohr-check-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.tseohr-check-item:hover {
    background: var(--background-color);
}

.tseohr-check-item:last-child {
    border-bottom: none;
}

.tseohr-check-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.tseohr-check-status {
    padding-top: 2px;
}

.tseohr-status-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tseohr-status-good {
    background: var(--secondary-color);
}

.tseohr-status-warning {
    background: var(--warning-color);
}

.tseohr-status-error {
    background: var(--error-color);
}

.tseohr-check-content {
    flex: 1;
}

.tseohr-check-message {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 500;
}

.tseohr-check-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tseohr-check-value {
    font-size: 0.875em;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--background-color);
    padding: 4px 8px;
    border-radius: 6px;
}

.tseohr-priority-tag {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    color: white;
}

.tseohr-priority-critical .tseohr-priority-tag {
    background: var(--critical-color);
}

.tseohr-priority-high .tseohr-priority-tag {
    background: var(--error-color);
}

.tseohr-priority-medium .tseohr-priority-tag {
    background: var(--warning-color);
}

.tseohr-priority-low .tseohr-priority-tag {
    background: var(--text-light);
}

/* Recommendations */
.tseohr-recommendations-section {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-large);
}

.tseohr-recommendations-header {
    text-align: center;
    margin-bottom: 24px;
}

.tseohr-recommendations-header h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tseohr-recommendations-header p {
    color: var(--text-secondary);
}

.tseohr-recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tseohr-recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--border-color);
    transition: var(--transition);
}

.tseohr-recommendation-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-light);
}

.tseohr-recommendation-item.tseohr-priority-critical {
    border-left-color: var(--critical-color);
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
}

.tseohr-recommendation-item.tseohr-priority-high {
    border-left-color: var(--error-color);
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
}

.tseohr-recommendation-item.tseohr-priority-medium {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.tseohr-recommendation-item.tseohr-priority-low {
    border-left-color: var(--text-light);
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.tseohr-rec-priority {
    flex-shrink: 0;
}

.tseohr-rec-priority-badge {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    color: white;
}

.tseohr-priority-critical .tseohr-rec-priority-badge {
    background: var(--critical-color);
}

.tseohr-priority-high .tseohr-rec-priority-badge {
    background: var(--error-color);
}

.tseohr-priority-medium .tseohr-rec-priority-badge {
    background: var(--warning-color);
}

.tseohr-priority-low .tseohr-rec-priority-badge {
    background: var(--text-light);
}

.tseohr-rec-content {
    flex: 1;
}

.tseohr-rec-text {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 500;
}

/* Error Section */
.tseohr-error-section {
    margin-bottom: 24px;
}

.tseohr-error-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-large);
    border-left: 6px solid var(--error-color);
}

.tseohr-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.tseohr-error-content {
    margin-bottom: 20px;
}

.tseohr-error-content h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tseohr-error-content p {
    color: var(--text-secondary);
}

/* Footer */
.tseohr-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    font-size: 0.875em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tseohr-wrapper {
        padding: 12px;
    }
    
    .tseohr-header {
        padding: 24px 20px;
    }
    
    .tseohr-title {
        font-size: 2em;
    }
    
    .tseohr-input-group {
        flex-direction: column;
    }
    
    .tseohr-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tseohr-results-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .tseohr-results-actions button {
        flex: 1;
        justify-content: center;
    }
    
    .tseohr-score-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .tseohr-score-stats {
        justify-content: center;
    }
    
    .tseohr-results-grid {
        grid-template-columns: 1fr;
    }
    
    .tseohr-priority-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tseohr-check-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .tseohr-check-meta {
        align-self: stretch;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .tseohr-priority-overview {
        grid-template-columns: 1fr;
    }
    
    .tseohr-stats-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .tseohr-stat-item {
        min-width: auto;
    }
}

/* Scrollbar Styling */
.tseohr-check-list::-webkit-scrollbar {
    width: 6px;
}

.tseohr-check-list::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 3px;
}

.tseohr-check-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.tseohr-check-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Animation Classes */
.tseohr-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.tseohr-slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.tseohr-hidden {
    display: none !important;
}

.tseohr-visible {
    display: block !important;
}

.tseohr-text-center {
    text-align: center;
}

.tseohr-text-left {
    text-align: left;
}

.tseohr-text-right {
    text-align: right;
}

.tseohr-mb-0 {
    margin-bottom: 0 !important;
}

.tseohr-mt-0 {
    margin-top: 0 !important;
}