/* llms.txt Validator - Apple Design Inspired */
#llms-validator-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    max-width: 720px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.validator-header {
    text-align: center;
}
.validator-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

/* Tab Styles */
.validator-tabs {
    display: flex;
    background-color: #e8e8ea;
    border-radius: 8px;
    padding: 4px;
}
.tab-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.tab-btn.active {
    background-color: #fff;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Textarea is controlled by JS and hidden by default */
#llms-content {
    display: none;
    width: 100%;
    min-height: 250px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 14px;
    margin-top: 10px;
    font-family: "SF Mono", "Menlo", monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    background-color: #fff;
    box-sizing: border-box;
    transition: box-shadow 0.2s, border-color 0.2s;
}
#llms-content:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 10px;
}
#domain-input {
    flex-grow: 1;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
    background-color: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}
#domain-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}
.validator-btn {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    background-color: #007aff;
    color: white;
    white-space: nowrap;
}
.validator-btn:hover {
    background-color: #005ecb;
}
.validator-btn:active {
    transform: scale(0.98);
}
.validator-btn-secondary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #fff;
    color: #1d1d1f;
    border: 1px solid #dcdcdc;
}
.validator-btn-secondary:hover {
    background-color: #f5f5f7;
}

/* Results & Spinner */
#validator-results {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    min-height: 50px;
}
#validator-results .initial-message {
    color: #6e6e73;
    font-style: italic;
    margin: 0;
}
#validator-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#validator-results li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
#validator-results .icon {
    flex-shrink: 0;
    margin-top: 4px;
}
#validator-results code {
    background-color: #eef;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}
.icon-success { color: #34c759; }
.icon-error { color: #ff3b30; }
.icon-warning { color: #ff9500; }
#loading-spinner {
    align-self: center;
    border: 4px solid #e8e8ea;
    border-radius: 50%;
    border-top: 4px solid #007aff;
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Style */
.validator-footer {
    border-top: 1px solid #dcdcdc;
    padding-top: 20px;
    margin-top: 10px;
}
.flag-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.flag-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 0;
    background-color: #e8e8ea;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
}
.flag-btn:hover {
    transform: scale(1.1);
}
.flag-btn.active {
    border-color: #007aff;
}
.flag-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.icon-info { 
    color: #007aff; 
}

.result-title {
    font-weight: 600;
    color: #1d1d1f;
    margin-top: 16px;
    margin-bottom: 4px;
    padding-left: 0 !important;
    list-style-type: none !important;
}

ul > li:first-child.result-title {
    margin-top: 0;
}

/* ++ Responsive Design Adjustments ++ */
@media (max-width: 560px) {
    /* Reduce padding on the main container for more content space */
    #llms-validator-app {
        padding: 16px;
    }
    
    /* Allow tabs to wrap onto the next line if space is tight */
    .validator-tabs {
        flex-wrap: wrap;
    }

    /* Stack the domain input and its button vertically */
    .input-group {
        flex-direction: column;
    }
    
    /* Make the button full-width to match the input field */
    .input-group .validator-btn {
        width: 100%;
    }
}