/* IPje.nl DNS Propagation Checker v1.0.0 */

.prop-heading {
    margin: 24px 0;
}

.prop-heading h1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prop-heading h1 svg {
    color: #ff7f00;
    flex-shrink: 0;
}

.prop-heading p {
    opacity: .8;
}

.prop-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    min-width: 0;
}

.prop-card h2 {
    margin: 0 0 18px;
    font-size: 19px;
}

.prop-form-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
    margin: 10px 0 18px;
}

#prop-domain {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 7px;
    padding: 14px;
    font-size: 16px;
}

#prop-domain:focus {
    outline: 2px solid #ff7f00;
    outline-offset: 1px;
}

#prop-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 7px;
    background: #ff7f00;
    color: #171717;
    font-weight: 700;
    padding: 12px 24px;
    cursor: pointer;
}

#prop-submit:hover:not(:disabled) {
    background: #e36b00;
}

#prop-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.prop-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prop-types label {
    position: relative;
    cursor: pointer;
}

.prop-types input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.prop-types span {
    display: block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.prop-types input:checked + span {
    background: #ff7f00;
    border-color: #ff7f00;
    color: #171717;
}

.prop-types input:focus-visible + span {
    outline: 2px solid #ff7f00;
    outline-offset: 3px;
}

.prop-types span:hover {
    border-color: #ff7f00;
}

.prop-stats {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
}

.prop-stats .prop-card {
    text-align: center;
    padding: 18px 8px;
}

.prop-stats span {
    display: block;
    font-size: 13px;
    opacity: .8;
}

.prop-stats strong {
    display: block;
    font-size: 30px;
    margin-top: 6px;
}

.prop-green { color: #15803d; }
.prop-red { color: #dc2626; }

#prop-map {
    height: 440px;
    width: 100%;
    background: #f1f3f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    z-index: 1;
}

.prop-country {
    fill: #ffd5b0;
    fill-opacity: 1;
    stroke: #c58b58;
    stroke-width: .7;
}

.prop-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 18px;
    font-size: 13px;
}

.prop-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.prop-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.prop-dot.matching { background: #16a34a; }
.prop-dot.different { background: #dc2626; }
.prop-dot.unknown { background: #888; }
.prop-dot.local { background: #ff7f00; }

.prop-table-wrap {
    overflow-x: auto;
}

.prop-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}

.prop-table th {
    background: #f5f5f5;
    border-bottom: 2px solid #ff7f00;
    text-align: left;
    white-space: nowrap;
    padding: 12px;
}

.prop-table td {
    border-bottom: 1px solid #e5e5e5;
    padding: 12px;
    vertical-align: top;
}

.prop-table td:nth-child(3) {
    min-width: 180px;
    overflow-wrap: anywhere;
}

.prop-table td:nth-child(4),
.prop-table td:nth-child(5),
.prop-table td:nth-child(6) {
    white-space: nowrap;
}

.prop-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    background: #eee;
    color: #555;
}

.prop-badge.matching {
    background: #dcfce7;
    color: #166534;
}

.prop-badge.different,
.prop-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

.prop-badge.local {
    background: #ffe0cc;
    color: #984500;
}

#prop-error {
    color: #b91c1c;
    margin-top: 14px;
}

#prop-progress {
    margin-top: 18px;
    font-size: 13px;
}

.prop-progress-track {
    height: 5px;
    background: #ddd;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 10px;
}

.prop-progress-bar {
    width: 35%;
    height: 100%;
    background: #ff7f00;
    animation: prop-loading 1.5s infinite ease-in-out;
}

@keyframes prop-loading {
    from { transform: translateX(-100%); }
    to { transform: translateX(300%); }
}

.prop-explanation p {
    line-height: 1.7;
}

.prop-explanation h2:not(:first-child) {
    margin-top: 24px;
}

[data-theme="dark"] .prop-card {
    background: #1e1e1e;
    border-color: #383838;
}

[data-theme="dark"] #prop-domain {
    background: #252525;
    color: #f5f5f5;
    border-color: #555;
}

[data-theme="dark"] .prop-types span {
    border-color: #555;
}

[data-theme="dark"] #prop-map {
    background: #171717;
    border-color: #383838;
}

[data-theme="dark"] .prop-country {
    fill: #75491f;
    stroke: #b57b45;
}

[data-theme="dark"] .prop-table th {
    background: #292929;
}

[data-theme="dark"] .prop-table td {
    border-color: #383838;
}

[data-theme="dark"] .prop-green { color: #4ade80; }
[data-theme="dark"] .prop-red { color: #f87171; }
[data-theme="dark"] #prop-error { color: #fca5a5; }

[data-theme="dark"] .leaflet-popup-content-wrapper,
[data-theme="dark"] .leaflet-popup-tip {
    background: #252525;
    color: #f5f5f5;
}

[data-theme="dark"] .leaflet-control-attribution {
    background: #252525;
    color: #ccc;
}

[data-theme="dark"] .leaflet-control-attribution a {
    color: #ff9b38;
}

#prop-form [hidden],
#prop-summary[hidden],
#prop-results[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .prop-card { padding: 15px; }
    .prop-form-row { grid-template-columns: 1fr; }
    .prop-stats { grid-template-columns: repeat(2,1fr); }
    #prop-map { height: 320px; }
    .prop-types span { padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .prop-progress-bar { animation: none; }
}
