/* ==============================================
   BASE STYLES - fastsitecheck
   ==============================================
   Core styles, reset, and layout
*/

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    background: var(--bg-primary);
    overflow: hidden;
}

/* ==============================================
   HEADER
*/

.header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 60px 40px;
    position: relative;
    overflow: visible;
    transition: background 0.3s ease;
}

/* Subtle pattern overlay */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 150%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% -50%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.title-group-link {
    text-decoration: none;
    color: inherit;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 48px;
    width: auto;
    fill: var(--header-text);
    color: var(--header-text);
    transition: transform 0.3s ease;
}

.title-group-link:hover .logo {
    transform: scale(1.05);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.8em;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--header-text);
    line-height: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tagline {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* ==============================================
   CONTENT AREA
*/

.content {
    padding: 60px 60px 80px 60px;
    max-width: 100%;
}

.input-section {
    margin-bottom: 60px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.1em;
    letter-spacing: -0.3px;
}

textarea {
    width: 100%;
    min-height: 240px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    resize: vertical;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

/* ==============================================
   BUTTONS
*/

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

button {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-on-accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--text-secondary);
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* ==============================================
   THEME SWITCHER
*/

.theme-switcher {
    position: relative;
    display: inline-block;
}

.theme-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    background: rgba(255,255,255,0.3);
}

.theme-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--card-shadow);
    display: none;
    min-width: 180px;
    z-index: 100;
}

.theme-menu.active {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-primary);
    transition: background 0.2s;
}

.theme-option:hover {
    background: var(--bg-secondary);
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ==============================================
   SITEMAP CONTROLS
*/

.sitemap-controls {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
}

.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 1em;
    color: var(--text-primary);
    font-weight: 500;
}

.sitemap-fields {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sitemap-fields input[type="text"],
.sitemap-fields input[type="number"] {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95em;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.sitemap-fields input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ==============================================
   LOADING SPINNER
*/

.loading {
    display: none;
    text-align: center;
    padding: 80px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px dashed var(--border-color);
    margin-top: 40px;
}

.loading.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

/* ==============================================
   ANIMATIONS
*/

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==============================================
   UTILITY CLASSES
*/

.hidden { display: none !important; }

.card-hint {
    font-size: 0.8em;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin: 0 -24px -24px -24px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.seo-card:hover .card-hint {
    opacity: 1;
}
