* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary: #007975;
    --primary-light: #e6f7f6;
    --primary-dark: #005752;
    --secondary: #222222;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --white: #ffffff;
    --error: #d32f2f;
}

body {
    background-color: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--secondary);
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 5%;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.subtitle {
    font-size: 1.25rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 3rem;
}

.search-wrapper {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#domain-input {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--gray);
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

#domain-input:focus {
    border-color: var(--primary);
}

#search-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

#search-btn:hover {
    background-color: var(--primary-dark);
}

.loader {
    display: none;
    margin: 1.5rem auto;
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    color: var(--error);
    text-align: center;
    padding: 1rem;
    display: none;
    margin-top: 1rem;
    background-color: rgba(211, 47, 47, 0.1);
    border-radius: 8px;
}

.results {
    background-color: var(--gray-light);
    border-radius: 8px;
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #757575;
}

.empty-state svg {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
    fill: #bdbdbd;
}

.records-wrapper {
    width: 100%;
}

.domain-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray);
}

.domain-header h2 {
    font-size: 1.5rem;
    color: var(--secondary);
}

.domain-header span {
    color: var(--primary);
    font-weight: 700;
}

.record-type-section {
    margin-bottom: 2rem;
}

.record-type-section h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.record {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.record-value {
    background-color: var(--white);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

/* hide any premium-message elements */
.premium-message {
    display: none !important;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .record {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    .record-value {
        flex: 1;
        margin-bottom: 0;
    }
    .record-type-section h3 {
        font-size: 1.1rem;
        width: 120px;
        flex-shrink: 0;
    }
    .record-type-section {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .container {
        padding: 1.5rem;
    }
    .search-box {
        flex-direction: column;
    }
    #domain-input {
        border-radius: 8px 8px 0 0;
    }
    #search-btn {
        border-radius: 0 0 8px 8px;
        width: 100%;
    }
}