/* Hide default WP page title */
h1.entry-title {
    display: none;
}

#woo-scorer-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333; /* Default text color for the app */
}

#woo-scorer-app h2,
#woo-scorer-app h3,
#woo-scorer-app h4,
#woo-scorer-app h5,
#woo-scorer-app h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}

#woo-scorer-app h1 {
    font-size: 2.25em; /* Approx 36px if base is 16px */
}

#woo-scorer-app h2 {
    font-size: 1.875em; /* Approx 30px */
}

#woo-scorer-app h3 {
    font-size: 1.5em; /* Approx 24px */
}

#woo-scorer-app p {
    margin-top: 0;
    margin-bottom: 1em; /* Approx 16px */
    font-size: 1em; /* Base paragraph size */
}

#woo-scorer-app a {
    color: rgb(135, 62, 255);
    text-decoration: none;
}

#woo-scorer-app a:hover {
    text-decoration: underline;
}

/* Global Input Styles */
#woo-scorer-app input[type="text"],
#woo-scorer-app input[type="url"],
#woo-scorer-app input[type="email"],
#woo-scorer-app input[type="password"],
#woo-scorer-app input[type="search"],
#woo-scorer-app input[type="tel"],
#woo-scorer-app input[type="number"],
#woo-scorer-app textarea,
#woo-scorer-app select {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit; /* Inherit font from #woo-scorer-app */
    font-size: 1em;
    width: 100%; /* Default to full width, can be overridden */
}

/* Global Button Styles */
#woo-scorer-app button,
#woo-scorer-app input[type="submit"],
#woo-scorer-app input[type="button"] {
    background-color: rgb(135, 62, 255);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit; /* Inherit font from #woo-scorer-app */
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

#woo-scorer-app button:hover,
#woo-scorer-app input[type="submit"]:hover,
#woo-scorer-app input[type="button"]:hover {
    background-color: rgb(115, 42, 235);
}

.hero-wrapper {
    background-color: #7407B6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='30' viewBox='0 0 1000 120'%3E%3Cg fill='none' stroke='%23800BD9' stroke-width='10' %3E%3Cpath d='M-500 75c0 0 125-30 250-30S0 75 0 75s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 45c0 0 125-30 250-30S0 45 0 45s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 105c0 0 125-30 250-30S0 105 0 105s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 15c0 0 125-30 250-30S0 15 0 15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500-15c0 0 125-30 250-30S0-15 0-15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 135c0 0 125-30 250-30S0 135 0 135s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3C/g%3E%3C/svg%3E");
    color: white;
    padding: 2% 5%; 
    text-align: center;
    border-radius: 8px;
    position: relative;
}

.hero-section {
    /* Individual hero sections no longer need background styling */
}
.hero-section h1 {
    font-size: 2.5em; /* This will override #woo-scorer-app h1 within hero */
    margin-top: 0; /* Resetting top margin for hero context */
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
}
.hero-section p.subheading {
    font-size: 1.2em; /* This will override #woo-scorer-app p within hero */
    margin-bottom: 40px; /* Increased margin */
    color: white; /* Ensuring subheading text is white */
}

.hero-section .subheading {
    margin: 0 auto 20px auto;
    max-width: 600px;
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    display: inline-block;
}

#woo-scorer-form,
#woo-scorer-email-form {
    background-color: transparent; /* Removed white background */
    padding: 0px 40px; /* Increased padding */
    border-radius: 8px;
    display: inline-block;
    text-align: left;
    color: #333;
    max-width: 500px; /* Added max-width */
    width: 100%; /* Ensure it takes up available space within max-width */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */ /* Removed subtle shadow */
}

#woo-scorer-form label,
#woo-scorer-email-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333; /* Ensuring form label text is dark */
    /* font-family and font-size will be inherited from #woo-scorer-app global input styles */
}

#woo-scorer-form input[type="url"],
#woo-scorer-email-form input[type="email"] {
    width: 100%;
    padding: 12px; /* Slightly increased padding */
    margin-top: 25px; /* Increased margin */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /* font-family and font-size will be inherited from #woo-scorer-app global input styles */
}

#woo-scorer-form input[type="submit"],
#woo-scorer-email-form input[type="submit"] {
    background-color: #facc15; /* Changed background to yellow */
    color: black; /* Changed text to black */
    padding: 20px 20px; /* Adjusted padding */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%; /* Make button full width */
     /* font-family will be inherited from #woo-scorer-app global button styles */
}

#woo-scorer-form input[type="submit"]:hover,
#woo-scorer-email-form input[type="submit"]:hover {
    background-color: #eab308; /* Darker yellow for hover */
}

/* Legacy styles for backwards compatibility */
#woo-scorer-form {
    background-color: transparent; /* Removed white background */
    padding: 0px 40px; /* Increased padding */
    border-radius: 8px;
    display: inline-block;
    text-align: left;
    color: #333;
    max-width: 500px; /* Added max-width */
    width: 100%; /* Ensure it takes up available space within max-width */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */ /* Removed subtle shadow */
}
#woo-scorer-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333; /* Ensuring form label text is dark */
    /* font-family and font-size will be inherited from #woo-scorer-app global input styles */
}
#woo-scorer-form input[type="url"] {
    width: 100%;
    padding: 12px; /* Slightly increased padding */
    margin-top: 25px; /* Increased margin */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /* font-family and font-size will be inherited from #woo-scorer-app global input styles */
}
#woo-scorer-form input[type="submit"] {
    background-color: #facc15; /* Changed background to yellow */
    color: black; /* Changed text to black */
    padding: 20px 20px; /* Adjusted padding */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%; /* Make button full width */
     /* font-family will be inherited from #woo-scorer-app global button styles */
}
#woo-scorer-form input[type="submit"]:hover {
    background-color: #eab308; /* Darker yellow for hover */
}

#woo-scorer-error-message {
    display: none; /* Hide by default */
    background-color: #f8d7da; /* Light red background */
    color: #721c24; /* Dark red text */
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #f5c6cb; /* Red border */
    border-radius: 4px;
}

#woo-scorer-error-message.visible {
    display: block; /* Show when has visible class */
}

/* Blurred Report Styles */
#woo-scorer-results.blurred-report {
    position: relative;
    filter: blur(2px);
    pointer-events: none; /* Prevent interaction with blurred content */
    user-select: none; /* Prevent text selection */
}

#woo-scorer-results.blurred-report::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.25); /* Semi-transparent white overlay */
    z-index: 1;
    pointer-events: none;
}

/* Ensure email collection form appears above blurred content */
#woo-scorer-email-collection {
    position: relative;
    z-index: 10;
}

/* Ensure hero sections are positioned within the wrapper */
.hero-wrapper .hero-section {
    position: relative;
}

#woo-scorer-app .woo-scorer-checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

#woo-scorer-app .woo-scorer-checklist-icon svg {
    width: 24px; /* Adjust as needed */
    height: 24px; /* Adjust as needed */
    margin-right: 8px;
}

#woo-scorer-app .status-success .woo-scorer-checklist-icon svg {
    fill: green; /* Example color */
}

#woo-scorer-app .status-error .woo-scorer-checklist-icon svg {
    fill: red; /* Example color */
}

#woo-scorer-app .status-warning .woo-scorer-checklist-icon svg {
    fill: orange; /* Example color */
}

#woo-scorer-app .status-unknown .woo-scorer-checklist-icon svg {
    fill: grey; /* Example color */
}

/* Adjusted to be more specific to the report within the app, and to not override global p */
#woo-scorer-app .woo-scorer-checklist-content p {
    margin-top: 4px;
    font-size: 0.9em; /* Slightly smaller than base p */
    color: #555;
    margin-bottom: 0.5em; /* Add some bottom margin */
}

#woo-scorer-app .woo-scorer-learn-more-summary {
    font-size: 0.8em;
    margin-top: 5px;
    display: inline-block;
    cursor: pointer;
    color: rgb(135, 62, 255); /* Match link color */
    text-decoration: underline; /* Make it look more like a link */
}

#woo-scorer-app .woo-scorer-explanation-details[open] .woo-scorer-learn-more-summary {
    /* Optional: styles for when the details are open */
    margin-bottom: 5px;
}

#woo-scorer-app .woo-scorer-explanation-details pre {
text-wrap:auto;
}

#woo-scorer-app .woo-scorer-explanation {
    margin-top: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

#woo-scorer-app .woo-scorer-explanation h4 {
    font-size: 1.1em; /* Slightly larger than surrounding text */
    color: #333; /* Darker color for emphasis */
    margin-top: 1em; /* Add space above the heading */
    margin-bottom: 0.5em; /* Space between heading and paragraph */
}

/* Styles for paragraphs within explanations */
#woo-scorer-app .woo-scorer-explanation p {
    font-size: 0.9em; /* Match checklist content p */
    color: #555; /* Match checklist content p */
    margin-top: 0.5em; /* Add some top margin */
    margin-bottom: 0.5em; /* Add some bottom margin */
}

/* Global ul and ol styles to restore bullet points/numbers */
#woo-scorer-app ul {
    list-style-type: disc; /* Ensure bullet points are shown */
    padding-left: 20px; /* Add space for bullets */
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

#woo-scorer-app ol {
    list-style-type: decimal; /* Ensure numbers are shown */
    padding-left: 20px; /* Add space for numbers */
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

#woo-scorer-app li {
    margin-bottom: 0.25em; /* Space out list items */
}

/* Styles for lists within explanations */
#woo-scorer-app .woo-scorer-explanation ul {
    font-size: 0.9em; /* Match paragraph style */
    color: #555; /* Match paragraph style */
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 20px; /* Add default list padding */
}

#woo-scorer-app .woo-scorer-explanation ol {
    font-size: 0.9em; /* Match paragraph style */
    color: #555; /* Match paragraph style */
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 20px; /* Add default list padding */
}

#woo-scorer-app .woo-scorer-explanation li {
    margin-bottom: 0.25em; /* Space out list items a bit */
}

/* Ensure headings within the report also follow app styles if not overridden */
#woo-scorer-app .woo-scorer-report h3 {
    /* font-size will be inherited from #woo-scorer-app h3 */
    /* margin-top and margin-bottom will be inherited */
    /* color will be inherited */
}

/* Ensure the main report paragraph for 'Analysis for:' uses app styles */
#woo-scorer-app .woo-scorer-report > p {
    /* font-size, margins, color will be inherited from #woo-scorer-app p */
}

/* Group card styles for each checklist group */
#woo-scorer-app .woo-scorer-group-card {
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #e9ecef; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    padding: 40px; /* Internal spacing */
    margin-bottom: 20px; /* Space between cards */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Adjust heading margins within cards */
#woo-scorer-app .woo-scorer-group-card h3 {
    margin-top: 0; /* Remove top margin since card has padding */
    margin-bottom: 15px; /* Space between heading and list */
}

/* Adjust checklist margins within cards */
#woo-scorer-app .woo-scorer-group-card .woo-scorer-checklist {
    margin-bottom: 0; /* Remove bottom margin since card has padding */
}

/* Progress Bar Styles */
#woo-scorer-progress-form-replacement {
    padding: 40px; /* Match form padding */
    display: inline-block;
    max-width: 500px; /* Match form max-width */
    width: 100%; /* Match form width */
    text-align: left; /* Match form text alignment */
}

#woo-scorer-progress-container {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for hero section */
    border-radius: 8px;
    padding: 30px;
    backdrop-filter: blur(10px); /* Add blur effect */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    text-align: center;
}

#woo-scorer-progress-bar-wrapper {
    margin-bottom: 20px;
}

#woo-scorer-progress-bar {
    background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent white */
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

#woo-scorer-progress-fill {
    background: linear-gradient(90deg, #facc15 0%, #eab308 100%); /* Yellow gradient to match button */
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s ease-out;
    position: relative;
}

/* Add animated shimmer effect */
#woo-scorer-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

#woo-scorer-progress-message {
    font-size: 0.9em;
    font-weight: 500;
    color: white; /* White text for hero section */
    margin-top: 15px;
    min-height: 1.5em; /* Prevent layout shift when text changes */
}

/* Group Score and Doughnut Chart Styles */
#woo-scorer-app .group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Added to ensure space below header before list */
}

#woo-scorer-app .group-score {
    display: flex;
    align-items: center;
    font-size: 1em; /* Base size for the score percentage text */
    font-weight: 600;
}

#woo-scorer-app .score-doughnut {
    margin-right: 8px;
    vertical-align: middle; /* Align SVG nicely with text */
}

#woo-scorer-app .score-doughnut-track {
    stroke: #e6e6e6; /* Light grey for the track */
}

#woo-scorer-app .score-doughnut-indicator {
    stroke-linecap: round; /* Makes the ends of the line rounded */
    transition: stroke-dasharray 0.3s ease; /* Smooth transition for the score */
}

/* Color coding for doughnut chart */
#woo-scorer-app .score-doughnut.poor .score-doughnut-indicator {
    stroke: #ff4d4f; /* Red for poor */
}

#woo-scorer-app .score-doughnut.good .score-doughnut-indicator {
    stroke: #faad14; /* Orange for good */
}

#woo-scorer-app .score-doughnut.excellent .score-doughnut-indicator {
    stroke: #52c41a; /* Green for excellent */
}

/* Summary Cards Styles */
#woo-scorer-app .woo-scorer-summary-cards {
    display: flex;
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
    gap: 20px; /* Space between cards */
    margin-bottom: 30px; /* Space below the summary section */
}

#woo-scorer-app .woo-scorer-summary-card {
    flex: 1 1 200px; /* Flex properties for responsiveness: grow, shrink, basis */
    background-color: #ffffff; /* White background for cards */
    border: 1px solid #e0e0e0; /* Slightly lighter border */
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#woo-scorer-app .woo-scorer-summary-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em; /* Slightly larger than normal text, smaller than group headings */
    color: #333;
}

#woo-scorer-app .woo-scorer-summary-card .group-score.summary-score {
    flex-direction: column; /* Stack doughnut and percentage vertically */
    align-items: center;
}

#woo-scorer-app .woo-scorer-summary-card .score-doughnut {
    margin-right: 0; /* Remove right margin as it's centered */
    margin-bottom: 8px; /* Space between doughnut and percentage */
    width: 48px; /* Larger doughnut for summary cards */
    height: 48px;
}

#woo-scorer-app .woo-scorer-summary-card .score-percentage {
    font-size: 1.2em; /* Larger percentage text */
    font-weight: bold;
}

/* Total Score Card Styles */
#woo-scorer-app .woo-scorer-total-score-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0; /* Light grey background */
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px; /* Space below this card */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#woo-scorer-app .domain-info {
    /* font-size: 1.2em; /* Base size is now controlled by children or inherited */
    color: #333;
}

#woo-scorer-app .domain-info .report-for-label {
    font-size: 0.7em; /* Very small text */
    color: #777; /* Light grey color */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

#woo-scorer-app .domain-info .report-domain-name {
    font-weight: 600;
    color: #000000; /* Changed to black */
    font-size: 1.5em; 
    margin-bottom: 5px; 
}

#woo-scorer-app .domain-info .report-metadata {
    font-size: 0.9em; /* Smaller font for metadata, relative to parent of .domain-info */
    color: #555; 
}

#woo-scorer-app .domain-info .report-metadata .report-created-at,
#woo-scorer-app .domain-info .report-metadata .processing-time {
    display: inline; /* Changed from block to inline */
    margin-bottom: 0; /* Removed bottom margin as they are inline */
}

#woo-scorer-app .domain-info .report-metadata .metadata-separator {
    margin: 0 5px; /* Add space around the bullet */
}

/* This original .domain-name style might be unused now or used elsewhere, keeping for safety */
#woo-scorer-app .domain-info .domain-name {
    font-weight: 600;
    color: #0056b3; /* A distinct color for the domain */
}

#woo-scorer-app .total-score-display {
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

#woo-scorer-app .total-score-text {
    margin-right: 10px;
    color: #333;
    font-weight: 500;
}

#woo-scorer-app .total-score-doughnut {
    width: 48px; /* Consistent with summary card doughnuts or adjust as needed */
    height: 48px;
    margin-right: 8px;
}

#woo-scorer-app .total-score-percentage {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

#woo-scorer-app .woo-scorer-explanation a {
    font-weight: 600;
}

/* Copy URL Link Styles */
#woo-scorer-app .copy-url-link {
    color: rgb(135, 62, 255);
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
}

#woo-scorer-app .copy-url-link:hover {
    text-decoration: underline;
} 