:root {
    --blue: #003366;
    --lightblue: #e8ebff;
    --red: #cc3366;
    --orange: #ff9900;
    --font-family: 'Heebo', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f4f4f4;
    direction: rtl; 
    text-align: right;
    margin: 0;
    padding: 20px;
}

#hosting-checker-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    border: 2px solid var(--blue);
    border-radius: 12px;
    background-color: var(--lightblue);
    box-shadow: 0 8px 16px rgba(0, 51, 102, 0.2);
}

h2 {
    color: var(--blue);
    margin-top: 0;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 10px;
}

.hcd-sub-title {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 20px;
}

#hcd-domain-input, .home-input-wrapper input, .tech-search-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: var(--font-family);
}

button {
    font-family: var(--font-family);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 25px;
}

/* כפתורים ראשיים (כחולים) */
.btn-hosting, #hcd-check-button, #hcd-new-check-button {
    background-color: var(--blue);
    color: white;
    border: 1px solid var(--blue);
}
.btn-hosting:hover, #hcd-check-button:hover, #hcd-new-check-button:hover {
    background-color: #001f40;
    border-color: #001f40;
}

/* כפתורים משניים (לבנים עם מסגרת כחולה) */
/* SSL, Tech (Speed+SEO), Security */
.btn-ssl, .btn-tech, .btn-sec, 
#hcd-ssl-button, #hcd-tech-button, #hcd-sec-button {
    background-color: white;
    color: var(--blue);
    border: 1px solid var(--blue);
}

.btn-ssl:hover, .btn-tech:hover, .btn-sec:hover, 
#hcd-ssl-button:hover, #hcd-tech-button:hover, #hcd-sec-button:hover {
    background-color: var(--lightblue);
    color: var(--blue);
}

/* --- גריד בדף הבית --- */
.home-search-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.home-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.home-buttons-grid button { width: 100%; padding: 15px; }
@media (min-width: 650px) {
    .home-buttons-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 10px;
}

/* --- תוצאות --- */
#hcd-results { margin-top: 25px; }
.hcd-result-box {
    padding: 20px;
    border-radius: 8px;
    border: 2px solid;
    background-color: white;
    margin-bottom: 20px;
}
.hcd-hosted { border-color: #188a4b; background-color: #e8ffed; }
.hcd-not-hosted { border-color: var(--red); background-color: #fff0f5; }
.tech-search-box button {
	white-space: nowrap;
}
.home-buttons-grid button.btn-ssl, .home-buttons-grid button.btn-tech, .home-buttons-grid button.btn-sec {
    border: 1px solid #003366;
    color: #003366;
}
.hcd-result-box p {
    margin: 8px 0;
    line-height: 1.5;
    display: flex;
    justify-content: space-between;
}
.hcd-domain-status { font-size: 1.2em; font-weight: bold; display: block; margin-bottom: 15px; }
.status-yes { color: #188a4b; font-weight: bold; }
.status-no { color: var(--red); font-weight: bold; }

.hcd-dns-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--blue);
}
.hcd-dns-section h4 { margin-top: 0; margin-bottom: 10px; color: var(--blue); }

.hcd-a-info span, .hcd-ns-info span, .hcd-mx-info span, .hcd-spf-info span {
    font-family: monospace; color: #444; text-align: left; direction: ltr; display: block; word-break: break-all;
}

/* Tech / Security Pages */
.tech-search-box {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
}
.tech-search-box button { background-color: var(--blue); color: white; border: none; }
.tech-search-box button:hover { background-color: #001f40; }

.tech-label { font-size: 0.95em; color: #555; font-weight: normal; }
.tech-value { font-weight: bold; color: #222; }

.file-link-btn {
    background: var(--lightblue); color: var(--blue); text-decoration: none; padding: 3px 8px; border-radius: 4px; font-size: 0.9em; border: 1px solid var(--blue); margin-right: 5px; display: inline-block;
}
.file-link-btn:hover { background: #d0d8ff; }
.cms-link { color: #8e44ad; text-decoration: none; border-bottom: 1px dashed #8e44ad; }
.cms-link:hover { color: #6c3483; border-bottom: 1px solid #6c3483; }

.hcd-error { color: var(--red); font-weight: bold; padding: 10px; background: #fff; border: 1px solid var(--red); border-radius: 5px; }