/* static/style.css */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 2rem;
}

.container {
    max-width: 800px;
    margin-top: 20px;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    background-color: #1e293b;
    border-radius: 12px;
    padding: 7px 30px;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.hero {
    text-align: center;
}

.hero-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-form label {
    width: 100%;
}

.hero-form input {
    width: 100%;
}

.supporting-text {
    margin-top: 1rem;
    color: #cbd5f5;
    font-size: 1rem;
}

.value-props ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.value-props li {
    background: none;
    margin: 0.75rem 0;
    padding: 0;
}

.use-cases h3 {
    color: #38bdf8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.feature-card {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 1.5rem;
}

.feature-card p {
    margin-bottom: 0;
}

.faq .faq-item {
    margin-bottom: 1.5rem;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid rgba(71, 85, 105, 0.6);
}

.faq-item h3 {
    margin-top: 0;
    color: #38bdf8;
}

.faq-item p {
    margin-bottom: 0;
}

h1 {
    color: #38bdf8;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h2 {
    color: #38bdf8;
}

p {
    color: #94a3b8;
}

input[type="text"] {
    width: 80%;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

input[type="email"] {
    width: 80%;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

textarea {
    width: 80%;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

label {
    display: block;
}

button {
    padding: 0.75rem 1.5rem;
    background-color: #6366f1;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #4f46e5;
}

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

li {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #334155;
    border-radius: 8px;
}

a {
    color: #38bdf8;
    display: inline-block;
    margin-top: 2rem;
}

.site-footer {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.site-footer a {
    display: inline;
    margin: 0 0.5rem;
    color: #38bdf8;
}

.ad-wrapper {
    margin: 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ad-slot {
    width: 100%;
    min-height: 120px;
}

.ad-placeholder {
    border: 2px dashed #334155;
    background-color: rgba(51, 65, 85, 0.35);
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
    border-radius: 8px;
}

.ad-placeholder p {
    margin: 0;
}

/* violation section */

.violation-container {
    border: none;
    margin-bottom: 10px;
    border-radius: 5px;
}

.violation-header {
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #6366f1;
    border-radius: 5px;
}

.violation-header:hover {
    background-color: #4f46e5;
}

.violation-header .icon {
    margin-right: 10px;
}

.violation-header .label {
    flex-grow: 1;
}

.violation-count.badge {
    background-color: #0f172a;
    color: white;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.violation-count {
    margin-left: 10px;
    font-weight: bold;
}

.arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
    font-size: 18px;
}

.arrow.rotate {
    transform: rotate(90deg);
}

.violation-content {
    padding: 5px;
    display: none;
}

.violation-content p {
    margin: 0;
}

/* readability section */

.readability-info {
    display: inline-block;
    position: relative;
    margin-left: 10px;
    cursor: pointer;
}

.info-icon {
    color: #3b82f6;
    font-size: 18px;
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-left: 8px;
    margin-bottom: 5px;
}

.info-icon:hover {
    transform: scale(1.15); /* Hover effect */
}

.tooltip-text {
    visibility: hidden;
    width: 320px;
    background-color: #1e293b;
    color: #e2e8f0;
    text-align: left;
    padding: 14px;
    border-radius: 10px;
    position: absolute;
    z-index: 10;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    line-height: 1.4;
}

.readability-info:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.score-bar {
    width: 100%;
    height: 30px;
    background-color: #1a1a2e;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    position: relative;
}

.score-fill {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    background: linear-gradient(90deg, #ff4e50, #f9d423); /* default gradient fallback */
    animation: fillBar 1.5s ease-in-out forwards;
    transition: background 0.5s ease-in-out;
}

/* Dynamic coloring using score-based HSL hue (set via inline style) */
.score-fill.dynamic {
    background: linear-gradient(
        90deg,
        hsl(var(--hue), 70%, 50%) 0%,
        hsl(calc(var(--hue) + 20), 70%, 60%) 100%
    );
    box-shadow: 0 0 10px hsl(var(--hue), 70%, 60%);
}

/* Fill animation */
@keyframes fillBar {
    from {
        width: 0%;
    }
    to {
        width: var(--score-width);
    }
}


/* Circle chart */
.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.circle-bg {
  stroke: #eee;
}

.circle {
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.circular-chart.fast .circle {
  stroke: #00c853;
}

.circular-chart.moderate .circle {
  stroke: #ffca28;
}

.circular-chart.slow .circle {
  stroke: #e53935;
}

.percentage {
  font-size: 0.4em;
  text-anchor: middle;
  fill: white;
}
.geo-summary ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.geo-summary li {
    background: none;
    margin: 0.5rem 0;
    padding: 0;
}

.geo-summary a {
    color: #38bdf8;
}
