/* css/style.css */

/* --- Base & Typography --- */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff; /* The reference site uses a pure white background */
    color: #344054; /* A specific dark gray for body text from the reference */
    margin: 0;
    padding: 20px;
}

/* --- Layout & Header --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: #C5B86F; /* New accent color */
}

h1, h2, h3 {
    color: #101828; /* Near-black for headings from the reference */
    margin-top: 1.5em;
    font-weight: 600;
}

h1 {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
    font-size: 2em;
}

p {
    color: #475467; /* Specific paragraph color from the reference */
}

/* --- Form Styling --- */
form {
    margin-top: 20px;
    padding: 25px;
    background-color: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
}

.form-group {
    position: relative; /* Needed for absolute positioning of the suggestions */
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #344054;
}

input[type="text"],
input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d5dd;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #101828;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="url"]:focus {
    outline: none;
    border-color: #C5B86F;
    box-shadow: 0 0 0 3px rgba(197, 184, 111, 0.3);
}

button {
    display: inline-block;
    background-color: #C5B86F;
    color: #101828;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.error-box {
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 15px;
    border: 1px solid #fecaca;
    border-radius: 5px;
    margin-top: 20px;
}

/* --- Progress Section --- */
#progress-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 8px;
}

/* --- Report Styling (Moved from template) --- */
#report h2, #report h3 {
    border-bottom: 2px solid #C5B86F;
    padding-bottom: 10px;
}

#report h3 {
    font-size: 1.2em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #eaecf0;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #f9fafb;
    color: #344054;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.8px;
}

.rating {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
}

.rating.green { background-color: #d1fae5; color: #065f46; }
.rating.red { background-color: #fee2e2; color: #991b1b; }
.rating-cell { text-align: center; width: 100px; }

.response-row td {
    background-color: #f9fafb;
    border-left: 3px solid #eaecf0;
    padding-top: 15px;
    padding-bottom: 15px;
}

.response-row p { margin: 0; font-size: 0.95em; }
.response-row em { color: #475467; }

.report-section-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid #eaecf0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
}

.report-section-card ul { list-style-type: none; padding-left: 0; }
.report-section-card ul li {
    background-color: #f9fafb;
    border-left: 4px solid #C5B86F; /* New accent color */
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.report-section-card ul li b { color: #101828; }

/* --- Google-like Suggestions Dropdown --- */
.suggestions-container {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(32,33,36,0.28);
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

.suggestion-title {
    font-weight: 600;
    color: #101828;
}

.suggestion-domain {
    font-size: 0.9em;
    color: #475467;
}
