/* style.css - JESSE Stilleri */

:root {
    --primary: #c9a961;
    --primary-light: #e0bf7a;
    --primary-dark: #a68a3f;
    --secondary: #6b4a8e;
    --secondary-light: #8d6cb0;
    --bg: #2a1b4a;
    --bg-deep: #1a0f38;
    --bg-elevated: #4a2c6f;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-card-solid: #3a2a5e;
    --text: #f4ecd8;
    --text-light: #c9b8d4;
    --text-muted: #8a7a9c;
    --danger: #e76f51;
    --danger-dark: #c4533a;
    --border: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.25);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 800px;
}

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

html {
    font-size: 16px;
}

/* Accessibility: visually hidden but readable by screen readers and search bots */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font);
    background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg) 50%, var(--bg-elevated) 100%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* --- Navigasyon --- */
#main-nav {
    background: rgba(26, 15, 56, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 1rem;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-username {
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-logout {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

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

/* --- Genel Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .card,
    .home-action-card,
    .history-item,
    .chat-header,
    .chat-input-area,
    .message-assistant,
    .typing-indicator {
        background: var(--bg-card-solid);
    }
    #main-nav {
        background: var(--bg-deep);
    }
}

/* --- Giriş Sayfası --- */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

/* Sol marka paneli */
.login-brand {
    position: relative;
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg) 50%, var(--bg-elevated) 100%);
}

.login-brand-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(201,169,97,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(141,108,176,0.25) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(224,191,122,0.1) 0%, transparent 45%);
    background-size: 100% 100%;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 3rem;
    max-width: 440px;
    animation: fadeInLeft 0.8s ease both;
}

.logo-main {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 215, 130, 0.15);
    animation: scaleIn 0.7s ease 0.2s both;
}

.login-brand-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    color: white;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.login-brand-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
    letter-spacing: 1px;
    color: var(--primary-light);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.login-brand-tagline-en {
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.3rem;
    color: var(--text-light);
    animation: fadeInUp 0.6s ease 0.45s both;
}

.login-brand-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    border-radius: 2px;
    margin: 2rem auto;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.login-brand-quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
    padding: 0 1rem;
    border: none;
    margin: 0;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.login-brand-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease 0.7s both;
}

.login-brand-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

.login-brand-dots span:nth-child(1) { animation: floatDot 3s ease-in-out infinite; }
.login-brand-dots span:nth-child(2) { animation: floatDot 3s ease-in-out 0.5s infinite; background: var(--primary); opacity: 0.85; }
.login-brand-dots span:nth-child(3) { animation: floatDot 3s ease-in-out 1s infinite; }

/* Sağ form paneli */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: transparent;
    animation: fadeInRight 0.8s ease both;
}

.login-card {
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.login-card-header {
    margin-bottom: 2.5rem;
}

.login-card-header h2 {
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.4rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.login-card .subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* Input icon wrapper */
.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.form-input-icon {
    padding-left: 2.8rem;
}

.input-icon-wrapper:focus-within .input-icon {
    color: var(--primary-light);
}

.login-card .form-input {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-card .form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(224,191,122,0.18);
}

.login-card .form-input-icon {
    padding-left: 2.8rem;
}

.login-card .form-group {
    animation: fadeInUp 0.6s ease 0.5s both;
}

/* Gelişmiş giriş butonu */
.btn-login {
    margin-top: 0.5rem;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    justify-content: center;
    gap: 0.6rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,169,97,0.45);
}

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

.btn-arrow {
    transition: transform 0.2s;
    font-size: 1.2rem;
}

.btn-login:hover .btn-arrow {
    transform: translateX(3px);
}

/* Giriş footer */
.login-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease 0.7s both;
}

.login-footer-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Form Elemanları --- */
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.form-input:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-input:focus {
    border-color: var(--primary-light);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* --- Butonlar --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--bg-deep);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(201,169,97,0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 4px 16px rgba(201,169,97,0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-light);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-full {
    width: 100%;
}

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

/* --- Ana Sayfa (Giriş yapılmış) --- */
.home-wrapper {
    padding-top: 0;
}

.welcome-section {
    text-align: center;
    padding: 2rem 0 1rem;
}

.welcome-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.welcome-section p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.daily-card {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--primary) 100%);
    color: var(--text);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-strong);
}

.daily-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.daily-card .daily-message {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.daily-card .daily-verse {
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}

.daily-card .verse-source {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.85;
}

.home-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.home-action-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: block;
}

.home-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.home-action-card .action-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.home-action-card h4 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.home-action-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Sohbet Sayfası --- */
.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
}

.chat-header {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(201,169,97,0.3);
}

.chat-header-info h3 {
    font-size: 1rem;
    color: var(--text);
}

.chat-header-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    line-height: 1.5;
    font-size: 0.95rem;
    animation: messageIn 0.3s ease;
    word-wrap: break-word;
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

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

.message-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--bg-deep);
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(201,169,97,0.25);
}

.message-assistant {
    align-self: flex-start;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.3rem;
    text-align: right;
}

.message-assistant .message-time {
    text-align: left;
}

/* Yükleniyor animasyonu */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.8rem 1rem;
    align-self: flex-start;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Sohbet giriş alanı */
.chat-input-area {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.chat-input-area textarea {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: var(--font);
    resize: none;
    outline: none;
    max-height: 120px;
    line-height: 1.4;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s, background 0.2s;
}

.chat-input-area textarea:focus {
    border-color: var(--primary-light);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--bg-deep);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(201,169,97,0.3);
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(201,169,97,0.45);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Ayarlar Sayfası --- */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.api-key-wrapper {
    position: relative;
}

.api-key-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.3rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.info-box strong {
    color: var(--primary);
}

.storage-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.storage-bar-fill.warning {
    background: var(--danger);
}

.danger-zone {
    border: 2px solid var(--danger);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.danger-zone h4 {
    color: var(--danger);
    margin-bottom: 0.5rem;
}

.danger-zone p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* --- Geçmiş Sayfası --- */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.history-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.history-item-preview {
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.history-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.history-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.history-delete-btn:hover {
    color: var(--danger);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state p {
    font-size: 0.95rem;
}

/* --- Konuşma Görüntüleme Modal --- */
.convo-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.convo-viewer.active {
    display: flex;
}

.convo-viewer-inner {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    width: 100%;
    max-width: var(--max-width);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.convo-viewer-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius) var(--radius) 0 0;
}

.convo-viewer-header h3 {
    font-size: 1rem;
    color: var(--text);
}

.convo-viewer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.2rem;
}

.convo-viewer-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* --- Bildirim / Toast --- */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-deep);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    z-index: 300;
    transition: transform 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--danger);
    color: white;
}

.toast.success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--bg-deep);
    font-weight: 600;
}

/* --- API Key yokken uyarı --- */
.api-warning {
    background: rgba(255, 243, 205, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #f4d98c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-warning a {
    color: var(--primary-light);
    font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .nav-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 0.5rem 0;
        gap: 0.3rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-bottom: 0.3rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .login-wrapper {
        flex-direction: column;
    }

    .login-brand {
        flex: none;
        padding: 2.5rem 1.5rem 2rem;
    }

    .login-brand-content {
        animation: fadeInUp 0.6s ease both;
    }

    .login-brand-title {
        font-size: 2rem;
    }

    .login-brand-tagline {
        font-size: 0.95rem;
    }

    .login-brand-quote,
    .login-brand-divider,
    .login-brand-dots {
        display: none;
    }

    .logo-main {
        max-width: 280px;
        margin-bottom: 1rem;
    }

    .nav-logo-img {
        height: 32px;
    }

    .login-form-panel {
        padding: 2rem 1.5rem;
        animation: fadeInUp 0.6s ease 0.2s both;
    }

    .login-card-header h2 {
        font-size: 1.4rem;
    }

    .card {
        padding: 1.5rem;
    }

    .daily-card {
        padding: 1.5rem;
    }

    .message {
        max-width: 90%;
    }

    .home-actions {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }
}

/* OTP & Auth stilleri */
.form-error {
    color: #e05a5a;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(224, 90, 90, 0.1);
    border-left: 3px solid #e05a5a;
    border-radius: 4px;
}

.otp-hint {
    font-size: 0.9rem;
    color: var(--text-secondary, #888);
    margin-bottom: 1.25rem;
    text-align: center;
}

.otp-input {
    letter-spacing: 0.4em;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
}

.otp-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    text-decoration: underline;
    opacity: 0.85;
}

.btn-text:hover { opacity: 1; }
.btn-text:disabled { opacity: 0.4; cursor: default; text-decoration: none; }

/* Auth sekmeleri (Giriş / Kayıt) */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(201,169,97,0.2);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary, #888);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
    color: var(--primary, #c9a961);
    border-bottom-color: var(--primary, #c9a961);
}

.auth-tab:hover:not(.active) { color: var(--text-main, #ddd); }

.label-hint {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
}

/* Onay bekleniyor */
.confirm-pending-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: scaleIn 0.4s ease;
}

.confirm-pending-title {
    text-align: center;
    color: var(--primary, #c9a961);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.confirm-pending-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary, #aaa);
    word-break: break-word;
    margin-bottom: 0.5rem;
}

.confirm-pending-sub {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-secondary, #888);
    opacity: 0.8;
}
