/* AI Search Readiness Tool Page Specific Styles */
/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(78, 115, 223, 0.15);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.6;
}

.hero-banner h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1rem 0 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-separator {
    font-size: 0.8rem;
    opacity: 0.7;
}

.stats-banner {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 12px;
    min-width: 180px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255,255,255,0.15);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    opacity: 0.85;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #ffffff, #e0e6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.intro-section {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 950px;
    margin: 0 auto;
    color: #495057;
    font-weight: 400;
}

.intro-text strong {
    color: #4e73df;
    font-weight: 600;
}

/* Tool Container Layout */
.readiness-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tool-flex-container {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.tool-left-column {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.tool-right-column {
    width: 380px;
    flex-shrink: 0;
}

/* Analysis Card */
.analysis-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.header-icon {
    margin-bottom: 1rem;
    font-size: 2rem;
    opacity: 0.9;
}

.card-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

.form-intro {
    margin: 0;
    opacity: 0.9;
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 90%;
}

/* Form Styles */
.analysis-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.url-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.input-with-icon input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.15);
    outline: none;
}

/* Module Selection */
.module-selection h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 600;
}

.module-description {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #718096;
    font-size: 0.9rem;
}

.recommend-tag {
    background-color: #ebf4ff;
    color: #4299e1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.module-item {
    position: relative;
}

.module-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.module-item label {
    display: flex;
    padding: 1rem;
    background-color: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-item input[type="checkbox"]:checked + label {
    background-color: #ebf8ff;
    border-color: #bee3f8;
}

.module-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4e73df;
    color: white;
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.module-item input[type="checkbox"]:checked + label .module-icon {
    background-color: #3182ce;
}

.module-text {
    display: flex;
    flex-direction: column;
}

.module-text span {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.module-text small {
    color: #718096;
    font-size: 0.8rem;
}

.form-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Testimonial Card */
.testimonial-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    padding: 1.5rem;
    color: white;
    position: relative;
}

.success-icon {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.testimonial-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.testimonial-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.testimonial-content blockquote {
    font-style: italic;
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
    background-color: #e2e8f0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details cite {
    font-style: normal;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.author-title {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.rating {
    color: #f6ad55;
}

.recovery-stats {
    display: flex;
    border-top: 1px solid #e2e8f0;
    background-color: #f7fafc;
}

.recovery-stats .stat {
    flex: 1;
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.recovery-stats .stat:last-child {
    border-right: none;
}

.recovery-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1cc88a;
    margin-bottom: 0.25rem;
}

.recovery-stats .stat-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-box blockquote {
    font-style: italic;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #5a5c69;
}

.testimonial-box cite {
    font-style: normal;
    font-weight: 500;
    color: #4e73df;
}

/* Results Section */
.readiness-results {
    padding: 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-top: 3rem;
    overflow: hidden;
}

.readiness-results.hidden {
    display: none;
}

.results-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    padding: 2rem;
    color: white;
    text-align: center;
    position: relative;
}

.results-header h2 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.domain-analyzed {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    opacity: 0.9;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.7;
}

.results-container {
    padding: 2rem;
}

/* Results Overview Cards */
.results-overview {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.score-card, .recovery-card {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 1.5rem;
    text-align: center;
}

.score-card h3, .recovery-card h3 {
    font-size: 1.4rem;
    margin: 0 0 1.5rem;
    color: #2d3748;
}

.score-circle-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.score-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-background {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.score-gauge {
    fill: none;
    stroke: #4e73df;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease;
}

.score-value {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    fill: #2d3748;
}

.score-label {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    fill: #718096;
    letter-spacing: 0.5px;
}

.score-interpretation {
    margin-top: 0.5rem;
}

.score-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: #fed7d7;
    color: #e53e3e;
}

.score-badge.good {
    background-color: #c6f6d5;
    color: #38a169;
}

.score-badge.average {
    background-color: #feebc8;
    color: #dd6b20;
}

.score-summary-text {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Recovery Card */
.recovery-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1cc88a;
    line-height: 1;
    margin: 1rem 0;
}

.percent-sign {
    font-size: 1.8rem;
    vertical-align: super;
}

.recovery-meter {
    margin: 1.5rem 0;
}

.meter-background {
    height: 1rem;
    background-color: #edf2f7;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #1cc88a 0%, #4e73df 100%);
    width: 0;
    border-radius: 0.5rem;
    transition: width 1.5s ease-out;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.5rem;
}

.recovery-description {
    color: #4a5568;
    font-size: 0.95rem;
    margin: 1rem 0 0;
    line-height: 1.6;
}

/* Tabs Navigation */
.analysis-tabs {
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background-color: white;
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

.tab-navigation::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #718096;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: #4e73df;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button:hover {
    color: #4e73df;
}

.tab-button.active {
    color: #4e73df;
    font-weight: 600;
}

.tab-button.active::after {
    transform: scaleX(1);
}

/* Tab Content */
.tab-content-container {
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Overview Tab */
.overview-chart {
    height: 300px;
    margin-bottom: 2rem;
}

.overview-findings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.finding {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f7fafc;
}

.finding-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.finding-icon.critical {
    background-color: #fed7d7;
    color: #e53e3e;
}

.finding-icon.warning {
    background-color: #feebc8;
    color: #dd6b20;
}

.finding-icon.success {
    background-color: #c6f6d5;
    color: #38a169;
}

.finding-content h4 {
    margin: 0 0 0.5rem;
    color: #2d3748;
    font-size: 1.1rem;
}

.finding-content p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
}

/* Module Score Styles */
.module-score {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.module-score-visual {
    width: 80px;
    height: 80px;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.module-score-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-gauge.structured-data {
    stroke: #3182ce;
}

.score-gauge.content-quality {
    stroke: #38a169;
}

.score-gauge.entity-recognition {
    stroke: #805ad5;
}

.score-gauge.intent-alignment {
    stroke: #dd6b20;
}

.module-score-value {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    fill: #2d3748;
}

.module-score-details {
    flex-grow: 1;
}

.module-score-details h4 {
    margin: 0 0 0.5rem;
    color: #2d3748;
    font-size: 1.2rem;
}

.module-summary {
    margin: 0;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

.module-details {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

/* Action Tab */
.action-plan-intro {
    margin-bottom: 1.5rem;
}

.action-plan-intro p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.recommendation-list ul {
    padding-left: 0;
    list-style-type: none;
}

.recommendation-list li {
    background-color: white;
    border-left: 4px solid #4e73df;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recommendation-list li h4 {
    margin-top: 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.recommendation-list li p {
    margin-bottom: 0;
    color: #4a5568;
    line-height: 1.6;
}

.recommendation-list li.critical {
    border-left-color: #e53e3e;
}

.recommendation-list li.warning {
    border-left-color: #dd6b20;
}

.recommendation-list li.low {
    border-left-color: #3182ce;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Recovery CTA Section */
.recovery-cta-section {
    margin-top: 3rem;
}

/* Button styles */
.btn-primary {
    background-color: #4e73df;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: #2e59d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 89, 217, 0.3);
}

.btn-secondary {
    background-color: #1cc88a;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: #17a673;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(28, 200, 138, 0.3);
}

.btn-primary {
    background-color: #4e73df;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #2e59d9;
}

.btn-secondary {
    background-color: #1cc88a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #17a673;
}

@media (max-width: 992px) {
    .readiness-container {
        grid-template-columns: 1fr;
    }
    
    .score-overview {
        flex-direction: column;
        text-align: center;
    }
    
    .score-circle {
        margin-right: 0;
        margin-bottom: 20px;
    }
}
