/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    background-image: radial-gradient(circle at 80% 10%, rgba(0, 102, 255, 0.15) 0%, transparent 30%), 
                     radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 30%);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    width: 100%;
}

main {
    flex: 1;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
    color: #ffffff;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
}

a {
    color: #ff3c00;
    text-decoration: none;
}
.accent {
    color: #ff3c00;
    display: block;
}

.subtitle {
    font-size: 1rem;
    color: #777777;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ff3c00;
}

/* Layout sections */
.header-section {
    margin-bottom: 2rem;
}

.input-section {
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .input-container {
        flex-direction: row;
    }
}

.help-text {
    color: #777777;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Form elements */
.input-field {
    flex: 1;
    padding: 0.875rem 1rem;
    background-color: #111111;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Space Grotesk', sans-serif;
    border: none;
}

.input-field:focus {
    outline: 2px solid #ff3c00;
}


/* Error states */
.error-alert {
    display: none;
    background-color: #111111;
    border-left: 3px solid #ff004c;
    padding: 1rem;
    margin-top: 1rem;
}

.error-content {
    display: flex;
    align-items: flex-start;
}

.error-icon {
    color: #ff004c;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.error-message {
    flex: 1;
    font-size: 0.9rem;
}

.retry-btn {
    display: none;
    background-color: transparent;
    color: #ff004c;
    border: 1px solid #ff004c;
    padding: 0.375rem 0.875rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.75rem;
}

.retry-btn:hover {
    background-color: rgba(255, 0, 76, 0.1);
}

/* Results card */
.results-card {
    background-color: #090909;
}

.card-header {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #222222;
}

@media (min-width: 768px) {
    .card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .card-title {
        margin-bottom: 0;
    }
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.outline-btn {
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #222222;
    cursor: pointer;
}

.outline-btn:hover {
    border-color: #ff3c00;
    color: #ff3c00;
}

/* Domain items */
.domain-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #222222;
}

.domain-item:last-child {
    border-bottom: none;
}

.domain-item:hover {
    background-color: #111111;
}

.domain-name {
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 500;
}

.domain-actions {
    display: flex;
    gap: 1.5rem;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #777777;
    transition: color 0.2s ease;
}

.favorite-icon {
    cursor: pointer;
    color: #777777;
}

.favorite-icon.active {
    color: #ff3c00;
}

.action-btn:hover {
    color: #ffffff;
}

/* Button styling with flexbox for proper alignment */
.generate-btn {
    padding: 0 1.25rem;
    background-color: #ff3c00;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 2.75rem;
}

.generate-btn:hover {
    background-color: #e03500;
}

/* Spinner */
#loading-spinner {
    display: none;
    margin-right: 0.75rem;
    line-height: 0; /* Prevent line height from affecting alignment */
}

.spinner {
    animation: spin 1s linear infinite;
    height: 1.25rem;
    width: 1.25rem;
    vertical-align: middle; /* Ensure vertical alignment with text */
    display: inline-block;
}

/* Updated spinner elements for better visibility */
.spinner circle {
    opacity: 0.3;
    stroke: #ffffff;
    stroke-width: 3;
}

.spinner path {
    opacity: 0.9;
    fill: #ffffff;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* When spinner is visible, add a pulse effect to the button */
#generate-btn:has(#loading-spinner[style*="display: inline-block"]) {
    position: relative;
}

#generate-btn:has(#loading-spinner[style*="display: inline-block"])::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
} 

p, li {
    margin-bottom: 1rem;
    color: #aaaaaa;
    font-size: 0.95rem;
}

/* SEO Content section */
.seo-content {
    margin-top: 3rem;
    margin-bottom: 3rem;
    max-width: 800px;
}

.seo-content p {
    margin-bottom: 1rem;
    color: #aaaaaa;
    font-size: 0.95rem;
}

.feature-list {
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    background-color: rgba(17, 17, 17, 0.5);
    padding: 1.25rem;
    border-left: 3px solid #ff3c00;
}

.feature-item p {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: #090909;
    border-top: 1px solid #222222;
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.footer-logo span {
    color: #ff3c00;
}

.footer-description {
    color: #777777;
    font-size: 0.9rem;
    max-width: 300px;
    margin-bottom: 1rem;
}

.footer-links h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #777777;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ff3c00;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #777777;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}



.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #222222;
    text-align: center;
    color: #777777;
    font-size: 0.85rem;
}

.logo {
    display: inline-block;
    margin-right: 15px;
}

.logo-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 108px;
    width:  108px;
    font-size: 92px;
    background: #ff3c00;
    color: white;
    font-weight: 700;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}

.logo-flex {
  display: flex;
}

        /* TLD Chooser Styles */
        .tld-chooser {
            margin-top: 12px;
            margin-bottom: 8px;
        }
        
        .tld-chooser-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }
        
        .tld-chooser-title {
            font-weight: 500;
            color: #555;
        }
        
        .tld-toggle-all {
            cursor: pointer;
            color: #ff3c00;
            font-size: 0.8rem;
            text-decoration: underline;
        }
        
        .tld-options {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tld-option {
            display: flex;
            align-items: center;
            gap: 6px;
            border-radius: 6px;
            padding: 6px 10px;
            font-size: 0.9rem;
            cursor: pointer;
            user-select: none;
            border: 1px solid #e4e4e7;
            transition: all 0.2s ease;
        }
        
        .tld-option:hover {
            background-color: #eeeef4;
        }
        
        .tld-option.selected {
            background-color: #4f46e520;
            border-color: #ff3c00;
            color: #ff3c00;
        }
        
        .tld-option.popular {
            font-weight: 500;
        }
        
        .tld-option-check {
            color: #ff3c00;
            display: none;
        }
        
        .tld-option.selected .tld-option-check {
            display: inline;
        }

