/* ===== SEO ANALYZER TOOL STYLES =====
*
* WHAT THIS FILE DOES:
* This file styles the SEO Analyzer tool - a special feature that checks websites
* and tells users how to make them better for search engines like Google.
*
* Think of it like a health checkup for websites:
* - It examines the website (like a doctor examining a patient)
* - It finds problems (like finding what's wrong)
* - It gives advice on how to fix them (like a prescription)
*
* The design needs to feel:
* - Professional (so people trust the results)
* - Easy to understand (SEO can be confusing)
* - Encouraging (help people feel confident they can improve)
*/

/* SEO ANALYZER SPECIAL COLORS - Aligned with BrainSpark roofing theme */
.seo-analyzer-page {
    --seo-primary: #059669;          /* Green for positive results and growth */
    --seo-secondary: #065f46;        /* Darker green for serious recommendations */
    --seo-accent: #10b981;           /* Bright green for success indicators */
    --seo-bg: #ecfdf5;               /* Light green background for sections */
    --seo-hero-start: #191919;       /* Dark color matching site footer */
    --seo-hero-end: #2d2d2d;         /* Slightly lighter dark */
    --terracotta: #CC6848;           /* Site's primary brand color */
    --terracotta-dark: #b85a3d;      /* Darker terracotta for hover */
    background: var(--bg-cream, #F8F6F0);
    min-height: 100vh;
}

/* Hero Section Styling - Dark theme matching site's dark sections */
.service-hero.seo-theme {
    background: linear-gradient(135deg, var(--seo-hero-start) 0%, var(--seo-hero-end) 100%);
    min-height: 85vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.service-hero.seo-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23CC6848' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.6;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-size: clamp(3.2rem, 5vw, 4.5rem);
    font-weight: 500;
    margin-bottom: 25px;
    color: #ffffff;
    line-height: 1.15;
    font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
    letter-spacing: -0.02em;
}

.hero-text h1 i {
    color: var(--terracotta, #CC6848);
    margin-right: 15px;
}

.hero-text p {
    font-size: 1.7rem;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

/* Enhanced Search Form */
.analyzer-form {
    max-width: 650px;
    margin: 0 auto 60px;
    position: relative;
}

.form-group.full-width {
    margin-bottom: 0;
}

.input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 8px 8px 20px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.input-wrapper:focus-within {
    border-color: rgba(204, 104, 72, 0.6);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(204, 104, 72, 0.2);
}

.input-wrapper i.fas.fa-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    margin: 0;
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    padding: 20px 15px;
    border: none;
    background: transparent;
    color: white;
    font-size: 18px;
    outline: none;
    font-weight: 500;
}

.input-wrapper input[type="url"] {
    flex: 1;
    padding: 20px 15px;
    border: none;
    background: transparent;
    color: white;
    font-size: 18px;
    outline: none;
    font-weight: 500;
}

.input-wrapper input::placeholder,
.input-wrapper input[type="url"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.input-wrapper button,
.btn-primary {
    background: var(--terracotta, #CC6848);
    color: white;
    border: none;
    padding: 20px 35px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(204, 104, 72, 0.35);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

.input-wrapper button:hover,
.btn-primary:hover {
    background: var(--terracotta-dark, #b85a3d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 104, 72, 0.45);
}

.input-wrapper button:active,
.btn-primary:active {
    transform: translateY(0);
}

.input-wrapper button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading State */
.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .loading-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Focus States */
.btn-primary:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(204, 104, 72, 0.4), 0 0 0 4px rgba(204, 104, 72, 0.2);
}

.input-wrapper input:focus,
.input-wrapper input[type="url"]:focus {
    outline: none;
}

/* Hero Features */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.12);
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--terracotta, #CC6848);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.feature-item span {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: white;
}

/* Results Section */
.seo-results {
    padding: 6rem 0;
    background: var(--background-alt);
}

.results-header {
    text-align: center;
    margin-bottom: 4rem;
}

.results-header h2 {
    margin-bottom: 1rem;
}

.analyzed-url {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 1.4rem;
}

.analyzed-url i {
    color: var(--terracotta, #CC6848);
}

/* Score Overview */
.score-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.score-circle {
    position: relative;
    width: 12rem;
    height: 12rem;
}

.score-circle svg {
    transform: rotate(-90deg);
}

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

.score-number {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--seo-primary);
    line-height: 1;
}

.score-label {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}

.score-details {
    display: flex;
    gap: 4rem;
    align-items: center;
}

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

.score-grade span {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-grade small {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.breakdown-label {
    color: var(--text-light);
}

.breakdown-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.8rem;
}

/* Quick Metrics */
.quick-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.metric-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.metric-card.status-good {
    border-left-color: var(--success-color);
}

.metric-card.status-warning {
    border-left-color: var(--warning-color);
}

.metric-card.status-error {
    border-left-color: var(--danger-color);
}

.metric-icon {
    width: 5rem;
    height: 5rem;
    background: var(--seo-bg);
    color: var(--seo-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.metric-icon i {
    font-size: 2rem;
}

.metric-content h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.metric-status {
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.2rem;
    display: inline-block;
}

.metric-status.status-good {
    background: var(--success-color);
    color: white;
}

.metric-status.status-warning {
    background: var(--warning-color);
    color: white;
}

.metric-status.status-error {
    background: var(--danger-color);
    color: white;
}

.metric-details {
    color: var(--text-light);
    font-size: 1.4rem;
}

/* Results Tabs */
.results-tabs {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: var(--background-alt);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    color: var(--text-light);
}

.tab-btn:hover,
.tab-btn.active {
    background: white;
    color: var(--terracotta, #CC6848);
    border-bottom: 3px solid var(--terracotta, #CC6848);
}

.tab-content {
    padding: 3rem;
}

.tab-pane {
    display: none;
}

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

/* Recommendations */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recommendation-item {
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--background-color);
}

.recommendation-item.severity-high {
    border-left: 4px solid var(--danger-color);
}

.recommendation-item.severity-medium {
    border-left: 4px solid var(--warning-color);
}

.recommendation-item.severity-low {
    border-left: 4px solid var(--success-color);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.recommendation-severity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.severity-label {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: white;
}

.severity-high .severity-label {
    background: var(--danger-color);
}

.severity-medium .severity-label {
    background: var(--warning-color);
}

.severity-low .severity-label {
    background: var(--success-color);
}

.recommendation-category {
    color: var(--text-light);
    font-weight: 500;
}

.recommendation-content h4 {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--text-color);
}

.issue-list,
.suggestion-list {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.issue-list li,
.suggestion-list li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    position: relative;
}

.issue-list li::before {
    content: '•';
    color: var(--danger-color);
    position: absolute;
    left: -1.5rem;
}

.suggestion-list li::before {
    content: '✓';
    color: var(--success-color);
    position: absolute;
    left: -1.5rem;
}

.current-value {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 8px;
    font-size: 1.4rem;
}

.no-recommendations {
    text-align: center;
    color: var(--success-color);
    font-size: 1.8rem;
    font-weight: 600;
    padding: 3rem;
}

/* Previews */
.previews-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.preview-section h4 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.google-preview {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background: #fafafa;
}

.google-title {
    font-size: 1.8rem;
    color: #1a0dab;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.google-url {
    color: #006621;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.google-description {
    color: #545454;
    font-size: 1.4rem;
    line-height: 1.4;
}

.facebook-preview,
.twitter-preview {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.facebook-image,
.twitter-image {
    height: 20rem;
    background: var(--background-alt);
    background-size: cover;
    background-position: center;
}

.facebook-content,
.twitter-content {
    padding: 1.5rem;
}

.facebook-title,
.twitter-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.facebook-description,
.twitter-description {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.facebook-url,
.twitter-url {
    color: var(--text-light);
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Technical Details */
.technical-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.technical-item {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--background-color);
}

.technical-item.status-good {
    border-left: 4px solid var(--success-color);
}

.technical-item.status-warning {
    border-left: 4px solid var(--warning-color);
}

.technical-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.technical-value {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-family: monospace;
    font-size: 1.4rem;
}

.technical-recommendation {
    color: var(--text-light);
    font-size: 1.3rem;
    font-style: italic;
}

/* Social Details */
.social-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.social-section h4 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-tags {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 8px;
}

.tag-key {
    font-weight: 600;
    min-width: 15rem;
    color: var(--terracotta, #CC6848);
}

.tag-value {
    color: var(--text-light);
    word-break: break-all;
}

.missing-tags {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    color: var(--danger-color);
    font-size: 1.4rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 50rem;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--danger-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-hero.seo-theme {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-text h1 {
        font-size: 2.8rem !important;
        margin-bottom: 20px;
    }
    
    .hero-text p {
        font-size: 1.5rem !important;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .analyzer-form {
        margin: 0 20px 50px !important;
    }
    
    .input-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-radius: 12px;
    }
    
    .input-wrapper input,
    .input-wrapper input[type="url"] {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
    
    .input-wrapper button,
    .btn-primary {
        width: 100%;
        padding: 18px 30px;
        font-size: 18px;
    }
    
    .hero-features {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        margin: 0 20px;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .feature-item i {
        font-size: 24px;
    }
    
    .feature-item span {
        font-size: 14px;
    }
    
    .score-overview {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .score-details {
        justify-content: center;
    }
    
    .quick-metrics {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 50%;
        font-size: 1.2rem;
    }
    
    .recommendation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-text p {
        font-size: 1.1rem !important;
    }
    
    .input-wrapper input,
    .input-wrapper input[type="url"] {
        font-size: 16px;
    }
    
    .input-wrapper button,
    .btn-primary {
        font-size: 16px;
        padding: 16px 25px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analyzer-form {
        margin-top: 2rem;
    }
    
    .score-circle {
        width: 10rem;
        height: 10rem;
    }
    
    .score-number {
        font-size: 2.4rem;
    }
    
    .tab-btn {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .tab-content {
        padding: 2rem;
    }
} 