/* AEO 분석기 - 메인 스타일시트 */
@font-face {
    font-family: 'ChosunGu';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunGu.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* 컬러 시스템 - 가독성 개선 */
    --primary-color: #1d4ed8;
    --primary-hover: #1e40af;
    --secondary-color: #475569;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* 텍스트 색상 - 극대화된 대비 */
    --text-primary: #000000;
    --text-secondary: #111111;
    --text-muted: #222222;
    --text-inverse: #ffffff;
    --text-on-dark: #ffffff;
    --text-on-dark-secondary: #f0f0f0;
    --text-on-dark-muted: #d0d0d0;
    
    /* 폰트 시스템 - 가독성 최적화 */
    --font-family: 'ChosunGu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* 줄 간격 시스템 */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* 간격 */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    
    /* 그림자 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 반응형 브레이크포인트 */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
}

/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 전체 텍스트 가독성 강제 적용 - 모든 영역 */
* {
    color: #000000 !important;
    font-weight: 500 !important;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: #000000 !important;
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500 !important;
    text-rendering: optimizeLegibility;
}

/* 헤더 텍스트 */
.header *,
.logo,
.logo span,
.usage-badge,
.btn {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* logo-icon 흰색 색상 강제 적용 */
.logo-icon {
    color: #ffffff !important;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* 헤더 */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-4) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* 사용자 정보 */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.usage-badge {
    background: var(--gray-100);
    color: var(--text-secondary);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.usage-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.usage-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

/* 메인 콘텐츠 */
.main-content {
    padding: var(--spacing-8) 0;
}

/* 메인 콘텐츠 모든 텍스트 */
.main-content *,
.hero-section *,
.hero-title,
.hero-subtitle {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* 분석 폼 */
.analysis-form {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

/* 분석 폼 모든 텍스트 */
.analysis-form *,
.analysis-form h1,
.analysis-form h2,
.analysis-form h3,
.analysis-form p,
.analysis-form span,
.analysis-form label,
.analysis-form div {
    color: #000000 !important;
    font-weight: 600 !important;
}

.form-group {
    margin-bottom: var(--spacing-6);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.form-input {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: var(--font-size-base);
    color: #000000 !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* 폼 요소들 - 입력 텍스트 가시성 강화 */
input,
textarea,
select,
.form-input,
.form-textarea,
.form-control,
input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="search"] {
    color: #000000 !important;
    background-color: #ffffff !important;
    font-weight: 500 !important;
    border: 2px solid #dee2e6 !important;
}

/* 포커스 상태 */
input:focus,
textarea:focus,
select:focus,
.form-input:focus,
.form-textarea:focus,
.form-control:focus,
input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus {
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.25) !important;
}

/* 입력 필드 플레이스홀더 */
input::placeholder,
textarea::placeholder,
.form-input::placeholder,
.form-textarea::placeholder,
.form-control::placeholder,
input[type="text"]::placeholder,
input[type="url"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: var(--line-height-relaxed);
}

.form-help {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-1);
    line-height: var(--line-height-normal);
    font-weight: 500;
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-4);
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: var(--line-height-normal);
    text-rendering: optimizeLegibility;
    position: relative;
    overflow: hidden;
}

/* 버튼 기본 스타일 - 자동 색상 조정 */
.btn-primary {
    background: var(--primary-color);
    color: white !important;
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text-primary) !important;
    font-weight: 600;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-300);
    color: var(--text-primary) !important;
}

/* 자동 색상 조정 시스템 - 배경색에 따른 텍스트 색상 */
.btn-auto-color {
    background: var(--primary-color);
    color: white !important;
    transition: all 0.3s ease;
}

.btn-auto-color:hover:not(:disabled) {
    background: var(--primary-hover);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.3);
}

/* 밝은 배경 버튼 */
.btn-light {
    background: #f8f9fa;
    color: #212529 !important;
    border: 1px solid #dee2e6;
}

.btn-light:hover:not(:disabled) {
    background: #e9ecef;
    color: #212529 !important;
    border-color: #adb5bd;
}

/* 어두운 배경 버튼 */
.btn-dark {
    background: #212529;
    color: white !important;
}

.btn-dark:hover:not(:disabled) {
    background: #1c1f23;
    color: white !important;
}

/* 성공 버튼 */
.btn-success {
    background: var(--success-color);
    color: white !important;
}

.btn-success:hover:not(:disabled) {
    background: #047857;
    color: white !important;
}

/* 경고 버튼 */
.btn-warning {
    background: var(--warning-color);
    color: white !important;
}

.btn-warning:hover:not(:disabled) {
    background: #b45309;
    color: white !important;
}

/* 위험 버튼 */
.btn-danger {
    background: var(--error-color);
    color: white !important;
}

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    color: white !important;
}

/* 투명 배경 버튼 */
.btn-outline {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

.btn-large {
    padding: var(--spacing-4) var(--spacing-6);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 모든 버튼 텍스트 - 강제 색상 적용 제거하고 자동 조정 */
button,
button *,
.btn,
.btn * {
    font-weight: 700 !important;
}

/* 기본 버튼들의 색상 자동 조정 */
.btn-primary,
.btn-primary *,
.btn-success,
.btn-success *,
.btn-warning,
.btn-warning *,
.btn-danger,
.btn-danger *,
.btn-dark,
.btn-dark * {
    color: #ffffff !important;
}

.btn-secondary,
.btn-secondary *,
.btn-light,
.btn-light *,
.btn-outline,
.btn-outline * {
    color: #000000 !important;
}

/* hover 상태에서 색상 유지 */
.btn-outline:hover,
.btn-outline:hover * {
    color: #ffffff !important;
}

/* 구글 로그인 버튼 특별 처리 */
.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
    width: auto;
    padding: var(--spacing-4) var(--spacing-6);
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 700 !important;
    color: #000000 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: var(--line-height-normal);
    text-rendering: optimizeLegibility;
}

.google-login-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.google-login-btn:hover * {
    color: #ffffff !important;
}

/* 구글 로그인 버튼 가독성 개선 */
.google-login-btn,
.google-login-btn span,
#main-login-btn,
#main-login-btn span {
    color: #000000 !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    background: #ffffff !important;
    transition: all 0.3s ease;
}

/* hover 상태에서 색상 변경 */
.google-login-btn:hover,
.google-login-btn:hover span,
#main-login-btn:hover,
#main-login-btn:hover span {
    color: #ffffff !important;
    background: var(--primary-color) !important;
}

.google-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* 분석 결과 - 가독성 대폭 개선 */
.analysis-result {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-8);
    margin-bottom: var(--spacing-8);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.analysis-result:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-4);
    border-bottom: 2px solid #d1d5db;
}

.result-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: #1f2937 !important;
    line-height: var(--line-height-tight);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.score-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-5);
    border-radius: 20px;
    font-size: var(--font-size-xl);
    font-weight: 800;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.score-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-8);
}

.score-item {
    background: #f8fafc !important;
    padding: var(--spacing-5);
    border-radius: 12px;
    border-left: 6px solid var(--primary-color);
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.score-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: var(--primary-hover);
}

.score-item-title {
    font-size: var(--font-size-base);
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin-bottom: var(--spacing-3);
    line-height: var(--line-height-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-item-value {
    font-size: var(--font-size-3xl);
    font-weight: 900 !important;
    color: #111827 !important;
    line-height: var(--line-height-tight);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.score-item-max {
    font-size: var(--font-size-xl);
    font-weight: 700 !important;
    color: #6b7280 !important;
}

/* 개선 제안 - 가독성 강화 */
.suggestions {
    margin-top: var(--spacing-8);
    background: #ffffff !important;
    padding: var(--spacing-6);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.suggestions:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.1);
}

.suggestions-title {
    font-size: var(--font-size-2xl);
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin-bottom: var(--spacing-5);
    line-height: var(--line-height-tight);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    background: #f0fdf4 !important;
    padding: var(--spacing-5);
    border-radius: 10px;
    margin-bottom: var(--spacing-4);
    border-left: 6px solid var(--success-color);
    border: 2px solid #bbf7d0;
    color: #1f2937 !important;
    font-weight: 600 !important;
    line-height: var(--line-height-relaxed);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.suggestion-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
    border-left-color: #047857;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

/* 분석결과 영역 텍스트 가독성 최적화 */
.analysis-result h1,
.analysis-result h2,
.analysis-result h3,
.analysis-result h4,
.analysis-result h5,
.analysis-result h6 {
    color: #1f2937 !important;
    font-weight: 800 !important;
}

.analysis-result p,
.analysis-result div,
.analysis-result span {
    color: #374151 !important;
    font-weight: 600 !important;
}

.analysis-result .score-item-title {
    color: #1f2937 !important;
    font-weight: 800 !important;
}

.analysis-result .score-item-value {
    color: #111827 !important;
    font-weight: 900 !important;
}

.analysis-result .suggestions-title {
    color: #1f2937 !important;
    font-weight: 800 !important;
}

.analysis-result .suggestion-item {
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.analysis-result .suggestion-item h6 {
    color: #111827 !important;
    font-weight: 700 !important;
}

.analysis-result .suggestion-item p {
    color: #374151 !important;
    font-weight: 600 !important;
}

/* 코드 블록 가독성 개선 */
.analysis-result pre,
.analysis-result code {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    font-weight: 500 !important;
    border: 1px solid #d1d5db !important;
}

.analysis-result pre code {
    color: #374151 !important;
    font-weight: 400 !important;
}

/* 에러 메시지 */
.error-message {
    background: #fee2e2;
    color: #dc2626 !important;
    padding: var(--spacing-4);
    border-radius: 8px;
    margin-bottom: var(--spacing-4);
    border-left: 4px solid #ef4444;
    line-height: var(--line-height-relaxed);
    transition: all 0.3s ease;
}

.error-message:hover {
    background: #fecaca;
    transform: translateX(3px);
}

.success-message {
    background: #d1fae5;
    color: #065f46 !important;
    padding: var(--spacing-4);
    border-radius: 8px;
    margin-bottom: var(--spacing-4);
    border-left: 4px solid #10b981;
    line-height: var(--line-height-relaxed);
    transition: all 0.3s ease;
}

.success-message:hover {
    background: #a7f3d0;
    transform: translateX(3px);
}

/* 에러 및 성공 메시지 */
.error-message,
.error-message *,
.success-message,
.success-message * {
    font-weight: 700 !important;
}

/* 특별한 hover 효과 - 버튼 클릭 애니메이션 */
.btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.btn-primary:active {
    background: #1e40af;
}

.btn-secondary:active {
    background: #9ca3af;
}

/* 포커스 상태 개선 */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.3);
}

/* 애니메이션 효과 */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-animation {
    animation: pulse 1s ease-in-out infinite;
}

/* 툴팁 스타일 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    :root {
        --font-size-xs: 0.85rem;
        --font-size-sm: 0.95rem;
        --font-size-base: 1.05rem;
        --font-size-lg: 1.2rem;
        --font-size-xl: 1.35rem;
        --font-size-2xl: 1.6rem;
        --font-size-3xl: 2rem;
        --font-size-4xl: 2.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-3);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        line-height: var(--line-height-tight);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        line-height: var(--line-height-relaxed);
    }
    
    .analysis-form,
    .analysis-result {
        padding: var(--spacing-6);
    }
    
    .score-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--spacing-4);
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: var(--spacing-2);
    }
    
    .form-input,
    .form-textarea {
        font-size: var(--font-size-base);
    }
    
    .btn {
        padding: var(--spacing-4) var(--spacing-5);
        font-size: var(--font-size-base);
    }
    
    .btn-large {
        padding: var(--spacing-5) var(--spacing-6);
        font-size: var(--font-size-lg);
    }
}

/* 다크 모드 지원 - 완전히 개선된 색상 시스템 */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #0f172a;
        --gray-100: #1e293b;
        --gray-200: #334155;
        --gray-300: #475569;
        --gray-400: #64748b;
        --gray-500: #94a3b8;
        --gray-600: #cbd5e1;
        --gray-700: #e2e8f0;
        --gray-800: #f1f5f9;
        --gray-900: #f8fafc;
        
        --text-primary: #ffffff;
        --text-secondary: #f8f8f8;
        --text-muted: #e0e0e0;
        --text-inverse: #000000;
        --text-on-dark: #ffffff;
        --text-on-dark-secondary: #f8f8f8;
        --text-on-dark-muted: #e0e0e0;
        
        --primary-color: #3b82f6;
        --primary-hover: #2563eb;
    }
    
    .form-input {
        background-color: #ffffff !important;
        border-color: var(--gray-300);
        color: #000000 !important;
    }
    
    .form-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    /* 다크 모드에서도 입력 필드 텍스트 가시성 보장 */
    input,
    textarea,
    select,
    .form-input,
    .form-textarea,
    .form-control,
    input[type="text"],
    input[type="url"],
    input[type="email"],
    input[type="password"],
    input[type="search"] {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #dee2e6 !important;
    }
    
    /* 다크 모드 포커스 상태 */
    input:focus,
    textarea:focus,
    select:focus,
    .form-input:focus,
    .form-textarea:focus,
    .form-control:focus,
    input[type="text"]:focus,
    input[type="url"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="search"]:focus {
        background-color: #ffffff !important;
        color: #000000 !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
    }
    
    /* 다크 모드 플레이스홀더 */
    input::placeholder,
    textarea::placeholder,
    .form-input::placeholder,
    .form-textarea::placeholder,
    .form-control::placeholder,
    input[type="text"]::placeholder,
    input[type="url"]::placeholder,
    input[type="email"]::placeholder,
    input[type="password"]::placeholder,
    input[type="search"]::placeholder {
        color: #6b7280 !important;
        opacity: 1 !important;
    }
    
    .btn-secondary {
        background: var(--gray-200);
        color: var(--text-primary);
    }
    
    .google-login-btn {
        background: var(--gray-100);
        border-color: var(--gray-300);
        color: var(--text-primary);
    }
}

/* 다크 배경 영역 스타일 추가 */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--text-on-dark);
    padding: var(--spacing-16) 0;
    margin-bottom: var(--spacing-12);
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--text-on-dark);
    margin-bottom: var(--spacing-4);
    line-height: var(--line-height-tight);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-on-dark-secondary);
    margin-bottom: var(--spacing-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
}

/* 기능 소개 섹션 배경 */
.features-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: var(--spacing-16) 0;
    margin-top: var(--spacing-16);
}

/* 기능 소개 섹션 - 다크 배경 */
.features-section h1,
.features-section h2,
.features-section h3,
.features-section p,
.features-section span,
.features-section div {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* 기능 카드 - 흰색 배경 */
.features-section [style*="background: white"] *,
.features-section [style*="background:white"] * {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Bootstrap 스타일 덮어쓰기 - 입력 필드 가시성 강제 */
.form-control,
.form-control:focus,
.form-control:active,
.form-control:hover,
.form-control-lg,
.form-control-lg:focus,
.form-control-lg:active,
.form-control-lg:hover,
input.form-control,
input.form-control:focus,
input.form-control:active,
input.form-control:hover,
input.form-control-lg,
input.form-control-lg:focus,
input.form-control-lg:active,
input.form-control-lg:hover {
    color: #000000 !important;
    background-color: #ffffff !important;
    border: 2px solid #dee2e6 !important;
    font-weight: 500 !important;
}

.form-control:focus,
.form-control-lg:focus,
input.form-control:focus,
input.form-control-lg:focus {
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.25) !important;
}

/* 유틸리티 클래스 */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }
.mt-4 { margin-top: var(--spacing-4); }
.mt-6 { margin-top: var(--spacing-6); }
.mt-8 { margin-top: var(--spacing-8); } 

/* 텍스트 가독성 강제 적용 */
.analysis-form h2,
.analysis-form p,
.analysis-form .form-label,
.analysis-form .form-help {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* 기능 카드 텍스트 강제 적용 */
.features-section h3,
.features-section p {
    color: #000000 !important;
    font-weight: 700 !important;
} 

/* 푸터 */
footer,
footer * {
    color: #000000 !important;
    font-weight: 500 !important;
} 

/* 메뉴 및 드롭다운 hover 효과 */
.dropdown-item {
    color: #000000 !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.dropdown-item:hover * {
    color: #ffffff !important;
}

/* 네비게이션 링크 hover 효과 */
.nav-link {
    color: #000000 !important;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(29, 78, 216, 0.1) !important;
    border-radius: 4px;
}

/* 카드 hover 효과 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* 로딩 스피너 */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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