/* Domain Age Checker Page Styles */

.header {
    background-color: white !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* ─── Hero ─────────────────────────────────────── */

.da-hero-section {
    background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 100%);
    padding: 80px 0;
    min-height: 580px;
}

.da-hero-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.da-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.da-hero-content {
    padding-right: 24px;
}

.da-hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-color);
}

.da-hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

.da-hero-highlight {
    color: var(--primary-500);
    position: relative;
}

.da-hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(55, 125, 255, 0.2);
    z-index: -1;
}

.da-hero-description {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.da-hero-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.da-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.da-hero-trust-item svg {
    color: #4CAF50;
    flex-shrink: 0;
}

/* Hero Form Card */

.da-hero-form-wrapper {
    position: relative;
}

.da-hero-form-card {
    background: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (min-width: 600px) {
    .da-hero-form-card {
        padding: 40px;
    }
}

.da-hero-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.da-hero-form-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.da-checker-form {
    margin-bottom: 0;
}

.da-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.da-form-input {
    flex: 1;
    height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.da-form-input:hover {
    border-color: rgba(0, 0, 0, 0.87);
}

.da-form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    border-width: 2px;
    padding: 0 13px;
}

.da-form-submit {
    height: 52px;
    padding: 6px 20px;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
}

.da-form-submit:hover {
    background: var(--primary-700);
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.2), 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12);
}

/* Alerts (shared with email validation pattern) */

.da-alert {
    display: none;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.da-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-info {
    background-color: rgb(229, 246, 253);
    color: rgb(1, 67, 97);
}

.alert-info svg { color: rgb(3, 169, 244); }

.alert-error {
    background-color: rgb(253, 237, 237);
    color: rgb(95, 33, 32);
}

.alert-error svg { color: rgb(239, 83, 80); }

/* Results */

.da-results {
    margin-top: 8px;
}

.da-result-card {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
}

.da-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary-50);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    gap: 12px;
    flex-wrap: wrap;
}

.da-result-domain {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    word-break: break-all;
}

.da-result-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.chip-success {
    background-color: #4CAF50;
    color: white;
}

.chip-error {
    background-color: #F44336;
    color: white;
}

.da-result-rows {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.da-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.da-result-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.da-result-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: right;
}

.da-result-age {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-500);
}

.da-result-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    color: #D32F2F;
    font-size: 0.875rem;
}

.da-result-error svg {
    color: #F44336;
    flex-shrink: 0;
    margin-top: 1px;
}

.da-result-api {
    padding: 12px 20px;
    background: #f5f5f5;
    border-top: 1px solid var(--border-color, #e0e0e0);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.da-result-api-label {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.55);
    white-space: nowrap;
}

.da-result-api-url {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary-500);
    word-break: break-all;
}

/* ─── How It Works ─────────────────────────────── */

.da-how-section {
    padding: 80px 0;
    background: white;
}

.da-how-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.da-how-header {
    text-align: center;
    margin-bottom: 56px;
}

.da-how-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.da-how-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.da-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.da-how-card {
    background: white;
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.da-how-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 5px -3px rgba(0,0,0,0.2), 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12);
}

.da-how-card-icon {
    color: var(--primary-500);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.da-how-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.da-how-card-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Why It Matters */

.da-why-section {
    background: var(--primary-50);
    border-radius: 12px;
    padding: 48px 40px;
}

.da-why-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-color);
    text-align: center;
}

.da-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.da-why-item {
    background: white;
    border-radius: 8px;
    padding: 24px;
}

.da-why-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.da-why-item-header svg {
    color: var(--primary-500);
    flex-shrink: 0;
}

.da-why-item-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.da-why-item p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* ─── API Documentation ─────────────────────────── */

.da-api-section {
    padding: 80px 0;
    background: var(--primary-50);
}

.da-api-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.da-api-header {
    text-align: center;
    margin-bottom: 48px;
}

.da-api-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.da-api-highlight {
    color: var(--primary-500);
}

.da-api-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.da-api-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Endpoint Info */

.da-api-endpoint-info {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.da-api-endpoint-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.da-api-method {
    padding: 4px 12px;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.da-api-path {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-color);
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 4px;
    word-break: break-all;
}

.da-api-param {
    color: var(--primary-500);
    font-style: italic;
}

.da-api-endpoint-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Sample Response */

.da-api-response {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.da-api-response-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.da-api-code-block {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.da-api-code-block pre {
    margin: 0;
    font-size: 13px;
}

/* Response Fields */

.da-api-fields {
    padding: 20px;
    background: var(--primary-50);
    border-radius: 8px;
}

.da-api-fields h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.da-api-field {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.875rem;
    align-items: baseline;
}

.da-api-field:last-child {
    border-bottom: none;
}

.da-api-field code {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary-500);
    background: rgba(55,125,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.da-api-field span {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Code Examples */

.da-code-examples-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.da-code-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.da-code-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.da-code-tab:hover {
    color: var(--primary-500);
}

.da-code-tab.active {
    color: var(--primary-500);
    border-bottom-color: var(--primary-500);
}

.da-code-panel {
    display: none;
    padding-top: 16px;
}

.da-code-panel.active {
    display: block;
}

/* ─── FAQ ───────────────────────────────────────── */

.da-faq-section {
    padding: 80px 0;
    background: white;
}

.da-faq-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.da-faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.da-faq-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.da-faq-subtitle {
    font-size: 17px;
    color: var(--text-muted);
}

.da-faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.da-faq-item {
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.da-faq-item:first-child {
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.da-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.da-faq-question:hover {
    color: var(--primary-500);
}

.da-faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.da-faq-item.open .da-faq-icon {
    transform: rotate(180deg);
}

.da-faq-answer {
    display: none;
    padding-bottom: 20px;
}

.da-faq-item.open .da-faq-answer {
    display: block;
}

.da-faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

.da-faq-answer code {
    font-family: monospace;
    font-size: 0.85rem;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--primary-500);
    word-break: break-all;
}

/* ─── Responsive ────────────────────────────────── */

@media (max-width: 968px) {
    .da-hero-grid {
        grid-template-columns: 1fr;
    }

    .da-hero-content {
        padding-right: 0;
    }

    .da-hero-title {
        font-size: 32px;
    }

    .da-how-grid,
    .da-why-grid {
        grid-template-columns: 1fr;
    }

    .da-why-section {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .da-hero-title {
        font-size: 26px;
    }

    .da-hero-subtitle {
        font-size: 20px;
    }

    .da-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .da-form-submit {
        width: 100%;
    }

    .da-api-content {
        padding: 24px 20px;
    }

    .da-code-tabs {
        overflow-x: auto;
    }

    .da-code-tab {
        white-space: nowrap;
    }
}

/* Responsive container widths */
@media (min-width: 600px) {
    .da-hero-container,
    .da-how-container,
    .da-api-container,
    .da-faq-container {
        max-width: 720px;
    }
}

@media (min-width: 900px) {
    .da-hero-container,
    .da-how-container,
    .da-api-container,
    .da-faq-container {
        max-width: 1236px;
    }
}
