/**
 * ClaudeCodeNavi - カスタムスタイルシート
 */

/* ベーススタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
}

/* ナビゲーションリンク */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #ee7711;
    background-color: #fef7ee;
}

.nav-link.active {
    color: #ee7711;
    background-color: #fef7ee;
}

/* モバイルナビゲーション */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    font-weight: 500;
    border-radius: 0.5rem;
}

.mobile-nav-link:hover {
    background-color: #f3f4f6;
    color: #ee7711;
}

/* ドロップダウン */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #374151;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: #ee7711;
    color: white;
}

.btn-primary:hover {
    background-color: #df5c09;
}

.btn-outline {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* 認証ボタン */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

/* カード */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* バッジ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-primary {
    background-color: #fef7ee;
    color: #ee7711;
}

.badge-success {
    background-color: #ecfdf5;
    color: #059669;
}

.badge-info {
    background-color: #e0f2fe;
    color: #0284c7;
}

.badge-warning {
    background-color: #fef3c7;
    color: #d97706;
}

/* タグ */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    transition: all 0.15s;
}

.tag:hover {
    background-color: #e5e7eb;
    color: #374151;
}

/* トースト */
.toast-success {
    padding: 1rem 1.5rem;
    background-color: #059669;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.toast-error {
    padding: 1rem 1.5rem;
    background-color: #dc2626;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.toast-info {
    padding: 1rem 1.5rem;
    background-color: #0284c7;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

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

/* フッター */
.footer-link {
    color: #9ca3af;
    transition: color 0.15s;
}

.footer-link:hover {
    color: white;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #9ca3af;
    background-color: #374151;
    border-radius: 0.5rem;
    transition: all 0.15s;
}

.footer-social:hover {
    background-color: #ee7711;
    color: white;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23374151' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* 比較テーブル */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.comparison-table tr:hover td {
    background-color: #fef7ee;
}

.comparison-table .highlight {
    background-color: #fef7ee;
}

/* 評価スター */
.rating {
    display: flex;
    gap: 0.125rem;
}

.rating .star {
    color: #fbbf24;
}

.rating .star-empty {
    color: #d1d5db;
}

/* プログレスバー */
.progress {
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #ee7711;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* 診断結果カード */
.result-card {
    background: linear-gradient(135deg, #ee7711 0%, #f19333 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

/* 記事カード */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card .article-thumbnail {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

.article-card .article-content {
    flex: 1;
    padding: 1rem;
}

/* メンターカード */
.mentor-card {
    text-align: center;
    padding: 1.5rem;
}

.mentor-card .avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 3px solid #ee7711;
}

/* フォーム */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: #ee7711;
    box-shadow: 0 0 0 3px rgba(238, 119, 17, 0.1);
}

.form-textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

/* アニメーション */
.fade-in {
    animation: fadeIn 0.3s ease;
}

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

/* スケルトンローディング */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Markdown表示用 */
.markdown-body h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.markdown-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.markdown-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.25rem;
}

.markdown-body code {
    padding: 0.125rem 0.375rem;
    font-size: 0.875rem;
    background-color: #f3f4f6;
    border-radius: 0.25rem;
    font-family: 'Fira Code', monospace;
}

.markdown-body pre {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #1f2937;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.markdown-body pre code {
    padding: 0;
    background-color: transparent;
    color: #e5e7eb;
}

.markdown-body blockquote {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid #ee7711;
    background-color: #fef7ee;
    color: #92400e;
}

.markdown-body a {
    color: #ee7711;
    text-decoration: underline;
}

.markdown-body a:hover {
    color: #df5c09;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.markdown-body table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.markdown-body th,
.markdown-body td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
}

.markdown-body th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* ================================================== */
/* FAQ Page Styles */
/* ================================================== */

/* FAQ Category Filters */
.faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.faq-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    text-decoration: none;
}

.faq-filter .material-icons {
    font-size: 18px;
}

.faq-filter:hover {
    background-color: #fef7ee;
    border-color: #ee7711;
    color: #ee7711;
}

.faq-filter.active {
    background-color: #ee7711;
    border-color: #ee7711;
    color: white;
}

.faq-filter.active .material-icons {
    color: white;
}

/* FAQ Section Title */
.faq-section {
    margin-bottom: 2rem;
}

.faq-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ee7711;
}

.faq-section-title .material-icons {
    font-size: 28px;
    color: #ee7711;
}

.faq-section-count {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* FAQ Item (Accordion) */
.faq-item {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-color: #d1d5db;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    color: #111827;
    user-select: none;
}

.faq-question-text {
    flex: 1;
}

.faq-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.faq-badge .material-icons {
    font-size: 14px;
}

/* Accordion Icon - Mothership Standard */
.faq-question .accordion-icon {
    font-size: 20px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.faq-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    display: none;
    padding: 1rem 1.25rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid #e5e7eb;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-question {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-right {
        width: 100%;
        justify-content: space-between;
    }

    .faq-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .faq-section-title {
        font-size: 1.25rem;
    }

    .faq-section-title .material-icons {
        font-size: 24px;
    }
}

/* ================================================== */
/* Authentication Modal Styles */
/* ================================================== */

/* Modal Overlay */
.auth-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    padding: 1rem;
    isolation: isolate;
}

.auth-modal-overlay.active {
    display: flex !important;
}

/* Modal Container */
.auth-modal {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalScaleIn 0.2s ease forwards;
    margin: auto;
    padding: 1.5rem !important;
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.auth-modal-overlay.active .auth-modal {
    transform: scale(1);
}

/* Modal Header */
.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem 1rem;
}

.auth-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.auth-modal-close {
    display: none;
}

.auth-modal-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Modal Body */
.auth-modal-body {
    padding: 0 1.5rem 1.5rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.auth-tab:hover {
    color: #374151;
}

.auth-tab.active {
    color: #ee7711;
    border-bottom-color: #ee7711;
}

/* Form Containers */
.auth-form-container {
    display: none;
}

.auth-form-container.active {
    display: block;
    animation: fadeInUp 0.2s ease;
}

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

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Auth Form Group */
.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* Auth Input */
.auth-input,
.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background-color: white;
    box-sizing: border-box;
}

.auth-input:focus,
.auth-form-group input[type="text"]:focus,
.auth-form-group input[type="email"]:focus,
.auth-form-group input[type="password"]:focus {
    outline: none;
    border-color: #ee7711;
    box-shadow: 0 0 0 3px rgba(238, 119, 17, 0.1);
}

.auth-input::placeholder,
.auth-form-group input::placeholder {
    color: #9ca3af;
}

/* Password Input Wrapper */
.auth-password-wrapper {
    position: relative;
}

.auth-password-wrapper .auth-input,
.auth-password-wrapper input[type="password"] {
    padding-right: 2.75rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s;
}

.auth-password-toggle:hover {
    color: #6b7280;
}

.auth-password-toggle .material-icons {
    font-size: 20px;
}

/* Auth Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background-color: #ee7711;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.auth-submit-btn:hover {
    background-color: #df5c09;
}

.auth-submit-btn:disabled {
    background-color: #fad6a5;
    cursor: not-allowed;
}

/* Auth Error Message */
.auth-error {
    display: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.auth-error.show {
    display: block;
}

/* Auth Form Options (Remember me + Forgot password) */
.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Auth Checkbox */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.auth-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    accent-color: #ee7711;
    cursor: pointer;
}

/* Auth Link */
.auth-link {
    font-size: 0.875rem;
    color: #ee7711;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s;
}

.auth-link:hover {
    color: #df5c09;
    text-decoration: underline;
}

/* Auth Hint */
.auth-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Auth Reset Description (alias for auth-reset-description) */
.auth-reset-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Auth Success Message */
.auth-success {
    display: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #059669;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.auth-success.show {
    display: block;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.auth-divider span {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
}

/* OAuth/Social Buttons */
.auth-oauth-buttons,
.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-oauth-btn,
.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.auth-oauth-btn svg,
.auth-social-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.auth-oauth-btn.google,
.auth-social-btn.google {
    color: #374151;
    background-color: white;
    border: 1px solid #d1d5db;
}

.auth-oauth-btn.google:hover,
.auth-social-btn.google:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.auth-oauth-btn.github,
.auth-social-btn.github {
    color: white;
    background-color: #24292f;
    border: 1px solid #24292f;
}

.auth-oauth-btn.github:hover,
.auth-social-btn.github:hover {
    background-color: #32383f;
}

/* Auth Footer Links */
.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-footer-link {
    color: #ee7711;
    cursor: pointer;
    transition: color 0.15s;
}

.auth-footer-link:hover {
    color: #df5c09;
    text-decoration: underline;
}

/* Reset Password Screen */
.auth-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: color 0.15s;
}

.auth-back-btn:hover {
    color: #374151;
}

.auth-back-btn .material-icons {
    font-size: 18px;
}

.auth-reset-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.auth-reset-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-modal {
        max-width: 100%;
        border-radius: 0.75rem;
    }

    .auth-modal-header {
        padding: 1rem 1.25rem 0.75rem;
    }

    .auth-modal-body {
        padding: 0 1.25rem 1.25rem;
    }
}

/* ================================================== */
/* Global Search Styles */
/* ================================================== */

/* Search Trigger Button */
.global-search-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.global-search-trigger:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.global-search-trigger .material-icons {
    font-size: 18px;
}

.global-search-trigger .search-placeholder {
    font-size: 0.875rem;
    color: #6b7280;
}

.global-search-trigger .search-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.375rem;
    font-size: 0.7rem;
    font-family: inherit;
    color: #9ca3af;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    margin-left: 0.25rem;
}

/* Search Overlay */
.global-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 998;
}

.global-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Search Container */
.global-search-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: calc(100% - 2rem);
    max-width: 640px;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 999;
    overflow: hidden;
}

.global-search-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Search Input Wrapper */
.global-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.global-search-input-wrapper .material-icons {
    font-size: 22px;
    color: #9ca3af;
}

.global-search-input-wrapper input {
    flex: 1;
    font-size: 1rem;
    border: none;
    outline: none;
    background: transparent;
    color: #111827;
}

.global-search-input-wrapper input::placeholder {
    color: #9ca3af;
}

.global-search-count {
    font-size: 0.75rem;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    display: none;
}

.global-search-count.show {
    display: inline-block;
}

.global-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    color: #9ca3af;
    background-color: #f3f4f6;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.global-search-clear:hover {
    color: #374151;
    background-color: #e5e7eb;
}

.global-search-clear .material-icons {
    font-size: 18px;
}

.global-search-clear.show {
    display: flex;
}

/* Search Results */
.global-search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

/* Empty State */
.global-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.global-search-empty .material-icons {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

/* Loading State */
.global-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    color: #6b7280;
}

.global-search-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #ee7711;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Category Header */
.global-search-category {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    background-color: #f9fafb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Search Item */
.global-search-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.1s ease;
    text-decoration: none;
    color: inherit;
}

.global-search-item:hover,
.global-search-item.active {
    background-color: #fef7ee;
}

.global-search-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.global-search-item-icon.article { background-color: #e0f2fe; }
.global-search-item-icon.question { background-color: #fef3c7; }
.global-search-item-icon.service { background-color: #ecfdf5; }
.global-search-item-icon.mentor { background-color: #fce7f3; }
.global-search-item-icon.gallery { background-color: #ede9fe; }
.global-search-item-icon.faq { background-color: #f3e8ff; }
.global-search-item-icon.user { background-color: #e0e7ff; }

.global-search-item-content {
    flex: 1;
    min-width: 0;
}

.global-search-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-item-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.125rem;
}

/* Highlight matching text */
.global-search-item mark {
    background-color: #fef08a;
    color: inherit;
    padding: 0 0.125rem;
    border-radius: 0.125rem;
}

/* Search Footer */
.global-search-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    font-size: 0.75rem;
    color: #6b7280;
}

.global-search-footer kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    font-size: 0.7rem;
    font-family: inherit;
    color: #374151;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    margin: 0 0.125rem;
}

/* No Results */
.global-search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: #6b7280;
}

.global-search-no-results .material-icons {
    font-size: 36px;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .global-search-trigger .search-placeholder,
    .global-search-trigger .search-kbd {
        display: none;
    }

    .global-search-trigger {
        padding: 0.5rem;
        background: transparent;
        border: none;
    }

    .global-search-trigger .material-icons {
        font-size: 24px;
        color: #6b7280;
    }

    .global-search-container {
        top: 60px;
        width: calc(100% - 1rem);
        max-width: none;
        margin: 0 0.5rem;
        left: 0;
        right: 0;
        transform: translateX(0) scale(0.95);
    }

    .global-search-container.active {
        transform: translateX(0) scale(1);
    }

    .global-search-results {
        max-height: calc(100vh - 200px);
    }

    .global-search-footer {
        gap: 1rem;
        flex-wrap: wrap;
    }
}
