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

:root {
    /* Material Design Color Palette - Lacivert Tonları */
    --primary-color: #1976d2; /* Uygulama mavisi */
    --primary-variant: #0056cc; /* Apple Blue koyu tonu */
    --secondary-color: #004d40; /* Material Teal 900 - Koyu yeşil-mavi */
    --secondary-variant: #00695c; /* Material Teal 800 - Koyulaştırılmış */
    --background: #ffffff;
    --surface: #ffffff;
    --error: #b00020;
    --success-color: #4caf50; /* Material Green */
    --danger-color: #f44336; /* Material Red */
    --on-primary: #ffffff;
    --on-secondary: #000000;
    --on-background: #000000;
    --on-surface: #000000;
    --on-error: #ffffff;

    /* Material Design Text Colors */
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-disabled: rgba(0, 0, 0, 0.38);

    /* Material Design Surface Colors */
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: rgba(0, 0, 0, 0.12);
    --divider-color: rgba(0, 0, 0, 0.12);

    /* Material Design Elevation */
    --shadow-1: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
    --shadow-2: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
    --shadow-4: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
    --shadow-6: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
    --shadow-8: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);

    /* Uygulama Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px; /* Uygulama sayfalarını biraz daralt */
    margin: 0 auto;
    padding: 16px; /* Kenarlarda hafif whitespace */
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-rows: auto 1fr;
    /* Dış kenarlar ve paneller arası boşluk simetrik */
    row-gap: 16px;
    column-gap: 16px;
    min-height: 100vh;
}

/* Header */
header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

/* Landing page'de başlık ortada */
body:has(.hero-section) header {
    justify-content: center;
    position: relative;
}

body:has(.hero-section) .header-actions {
    display: none;
}

/* Landing page'de dil butonları sağ üstte */
body:has(.hero-section) .language-switcher {
    position: absolute;
    top: 20px;
    right: 0;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

header h1 .logo-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

header h1 .logo-link:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    flex-wrap: nowrap; /* Taşmayı önle */
    align-items: center;
    gap: 6px; /* Daha küçük gap */
    overflow: hidden; /* Taşmayı gizle */
    max-width: calc(100vw - 200px); /* Logo için yer bırak */
}

/* Desktop için header optimizasyonu */
@media (min-width: 1024px) {
    .header-actions {
        gap: 8px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    .user-profile-link {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.5;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    opacity: 0.8;
}

.lang-btn.active {
    background: white;
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Daha küçük gap */
    padding: 6px 10px; /* Daha küçük padding */
    text-decoration: none;
    font-size: 0.9rem; /* Daha küçük font */
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: white;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--bg-light);
    border-color: #d0d0d0;
}

.nav-link.active {
    background: white;
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 6px 12px; /* Daha küçük padding */
    border-radius: 4px; /* Daha küçük radius */
    font-size: 0.9rem; /* Daha küçük font */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    text-decoration: none !important;
}

.btn-primary:hover {
    background: var(--bg-light);
    border-color: #d0d0d0;
}

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

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: #d0d0d0;
}

/* Main Calendar */
main {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 12px; /* Uygulama sayfalarında panel içi ekstra padding azaltıldı */
    box-shadow: var(--shadow);
}

.calendar-header {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.calendar-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
    flex-wrap: nowrap;
    order: 1;
}

.calendar-header h2, .page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.view-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.view-btn {
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.view-btn.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.week-info {
    color: var(--text-secondary);
    font-size: 14px;
    order: 2;
    width: 100%;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
}

/* Hafta görünümü özel düzenleme: taşmayı sadece haftalık alanda yönet */
#weeklyCalendar {
    overflow-x: auto; /* Gerekirse yalnızca haftalık alanda yatay kaydırma */
}

#weeklyCalendar .calendar-grid {
    grid-template-columns: repeat(7, minmax(120px, 1fr)); /* Biraz daha dar kolonlar */
    gap: 3px;
    min-width: 840px; /* 7 * 120px - gerekiyorsa sadece haftalık alanda kaydırılsın */
}

/* Week görünümünde whitespace azaltma */
#weeklyCalendar .day-column {
    padding: 5px;
}

#weeklyCalendar .day-header {
    margin-bottom: 6px;
    padding: 4px 3px;
}

#weeklyCalendar .day-name {
    font-size: 11px;
}

#weeklyCalendar .day-date {
    font-size: 10px;
}

#weeklyCalendar .vitamin-item {
    padding: 2px 3px;
    gap: 3px;
    margin-bottom: 2px;
}

#weeklyCalendar .vitamin-name {
    font-size: 10px;
    white-space: normal; /* Tek satır zorlamasını kaldır */
    display: -webkit-box; /* Çok satır kısaltma için */
    -webkit-line-clamp: 2; /* En fazla 2 satır */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Taşanı gizle */
}

#weeklyCalendar .vitamin-checkbox input[type="checkbox"] {
    width: 12px;
    height: 12px;
}

#weeklyCalendar .time-group-header {
    font-size: 9px;
    margin-bottom: 2px;
}

.day-column {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 8px;
    min-height: 400px;
    align-self: start;
}

.day-header {
    text-align: center;
    margin-bottom: 8px;
    padding: 6px 4px 6px 4px;
    border-bottom: 2px solid var(--border-color);
}

.day-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
}

.day-date {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.day-header.today {
    background: #1976d2; /* Eski açık mavi renk */
    color: white;
    border-radius: 6px;
    padding: 6px 4px;
    border: none;
}

.day-header.today .day-name,
.day-header.today .day-date {
    color: white;
}

/* Time Group - Saat Başlığı */
.time-group {
    margin-bottom: 8px;
}

.time-group-header {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 3px;
    padding-left: 4px;
}

/* Vitamin Item in Calendar - Ultra Kompakt */
.vitamin-item {
    background: white;
    border-radius: 4px;
    padding: 4px 6px;
    margin-bottom: 2px;
    border-left: 2px solid #1976d2; /* Eski açık mavi renk */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.vitamin-item:hover {
    box-shadow: var(--shadow);
    background: #f9f9f9;
}

.vitamin-item.checked {
    opacity: 0.6;
    border-left-color: var(--success-color);
}

.vitamin-info {
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s;
    padding: 2px 4px;
    border-radius: 3px;
}

.vitamin-info:hover {
    background: rgba(74, 144, 226, 0.05);
}

.vitamin-name {
    font-weight: 500;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vitamin-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    z-index: 2;
    padding: 2px;
    border-radius: 3px;
    transition: background 0.2s;
}

.vitamin-checkbox:hover {
    background: rgba(74, 144, 226, 0.1);
}

.vitamin-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
    accent-color: #43a047;
}

/* Chat Panel (Sağ Panel - Sabit) */
.chat-panel {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-panel-header {
    background: #f8f8f8;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.supplement-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
}

.supplement-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.supplement-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.supplement-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edit-btn, .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
}

.edit-btn {
    color: var(--primary-color);
}

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

.edit-btn:hover, .delete-btn:hover {
    opacity: 0.7;
}

.supplement-dosage {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.supplement-schedule {
    font-size: 11px;
    color: var(--text-secondary);
}

.schedule-item {
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px 4px 2px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-label span {
    font-size: 14px;
    color: var(--text-primary);
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.day-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.day-selector label {
    background: var(--bg-light);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: normal;
    font-size: 13px;
    border: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.day-selector label:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.day-selector input[type="checkbox"] {
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 14px;
}

/* Responsive - Ekran Boyutuna Göre Dinamik Düzen */

/* Orta Ekranlar (1200px - 1400px): AI paneli biraz küçült */
@media (max-width: 1400px) {
    .container {
        grid-template-columns: 1fr 280px;
    }
}

/* Küçük Ekranlar (1024px - 1200px): AI paneli daha küçük */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr 260px;
        row-gap: 12px;
        column-gap: 10px;
        padding: 16px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
    }
    
    .day-column {
        padding: 6px;
    }
}

/* Tablet Yatay (900px - 1024px): 5 kolon + küçük AI panel */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr 240px;
        gap: 12px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
    }
}

/* Tablet Dikey (768px - 900px): AI paneli üste */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }
    
    header {
        order: 1;
    }
    
    .chat-panel {
        order: 2;
        grid-column: 1;
        max-height: none;
        height: auto;
        margin-bottom: 20px;
    }
    
    .chat-messages {
        max-height: 250px;
    }
    
    #weeklyCalendar {
        order: 3;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Mobil Büyük (600px - 768px): 3 kolon */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .chat-panel {
        height: auto;
        max-height: none;
        margin-bottom: 16px;
    }
    
    .chat-messages {
        max-height: 200px;
    }
    
    header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    header h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
    }
}

/* Mobil Küçük (< 600px): Günlük görünümde 1 kolon, haftalıkta 2 */
@media (max-width: 600px) {
    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
    
    /* Günlük görünümde tek kolon */
    .calendar-grid[style*="1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .chat-panel {
        height: auto;
        max-height: none;
    }
    
    .chat-messages {
        max-height: 180px;
    }
    
    .day-column {
        padding: 8px;
    }
    
    .vitamin-item {
        padding: 5px 8px;
    }
    
    .vitamin-name {
        font-size: 11px;
    }
    
    .view-switcher {
        width: 100%;
    }
    
    .view-btn {
        flex: 1;
        padding: 8px 12px;
    }
}

/* Chat Messages Area */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: white;
    min-height: 200px;
}

.chat-message {
    margin-bottom: 20px;
    animation: messageSlideIn 0.3s ease-out;
}

.chat-message:last-child {
    margin-bottom: 0;
}

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

.user-message {
    display: flex;
    justify-content: flex-end;
}

.user-message .message-content {
    background: #f5f5f5;
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 12px 12px 2px 12px;
    max-width: 80%;
    font-size: 13px;
    line-height: 1.5;
}

.ai-message .message-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
}

.ai-message.loading .message-content {
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.vitamin-suggestions {
    margin-top: 12px;
}

.suggestions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 12px;
}

.suggestions-table thead {
    background: var(--bg-light);
}

.suggestions-table th {
    padding: 8px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.suggestions-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.suggestions-table tbody tr:hover {
    background: var(--bg-light);
}

.suggestions-table .vitamin-name {
    font-weight: 500;
    font-size: 13px;
}

.suggestions-table .vitamin-reason {
    color: var(--text-secondary);
    font-size: 11px;
    font-style: italic;
}

.suggestions-table .btn-add-mini {
    background: #f5f5f5;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.suggestions-table .btn-add-mini:hover {
    background: #ececec;
    border-color: #d0d0d0;
}

.btn-add-suggestion {
    width: 100%;
    background: #f5f5f5;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-suggestion:hover {
    background: #ececec;
    border-color: #d0d0d0;
}

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

.btn-add-all {
    width: 100%;
    background: #ececec;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.btn-add-all:hover {
    background: #e0e0e0;
    border-color: #d0d0d0;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    background: white;
}

.chat-input:focus {
    border-color: #c0c0c0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.03);
}

.chat-send-btn {
    background: var(--text-primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: #000;
    transform: scale(1.05);
}

/* Supplements List */
.supplements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.supplement-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.supplement-card:hover {
    box-shadow: var(--shadow);
    border-color: #d0d0d0;
}

.supplement-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.supplement-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.supplement-dosage {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.supplement-schedule {
    font-size: 11px;
    color: var(--text-secondary);
}

.schedule-item {
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px 4px 2px 0;
}

.delete-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
}

.delete-btn:hover {
    opacity: 0.7;
}

/* ========================================
   MONTHLY VIEW STYLES
   ======================================== */

.month-day-header {
    background: var(--bg-light);
    padding: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    border-radius: 6px;
}

.month-day-cell {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    min-height: 140px;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.month-day-cell:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.month-day-cell.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.month-day-cell.empty:hover {
    transform: none;
    box-shadow: none;
}

.month-day-cell.today {
    background: #e3f2fd;
    border-color: var(--primary-color);
    border-width: 2px;
}

.month-day-cell.past {
    opacity: 0.6;
}

.month-day-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.month-day-cell.today .month-day-number {
    color: var(--primary-color);
}

.month-day-summary {
    font-size: 11px;
    color: var(--text-secondary);
}

.month-vitamin-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.month-vitamin-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.month-vitamin-item:hover {
    background: var(--bg-light);
}

.month-vitamin-checkbox {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #43a047;
}

.month-vitamin-label {
    flex: 1;
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.3;
    cursor: pointer;
    word-break: break-word;
}

.month-vitamin-checkbox:checked + .month-vitamin-label {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.month-day-empty {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

.vitamin-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.vitamin-progress {
    margin-top: 6px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.3s;
    border-radius: 3px;
}

.progress-text {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
}

/* ========================================
   YEARLY VIEW STYLES - GITHUB HEATMAP
   ======================================== */

.year-heatmap-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.year-grid-wrapper {
    display: flex;
    gap: 8px;
    min-width: fit-content;
}

/* Sol taraf - Gün isimleri */
.year-day-labels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 20px; /* Ay etiketleri için boşluk */
}

.year-day-label {
    height: 11px;
    font-size: 9px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding-right: 4px;
}

/* Sağ taraf - Ay etiketleri ve grid */
.year-right-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.year-month-labels-container {
    display: grid;
    height: 16px;
    position: relative;
}

.year-month-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
}

.year-heatmap-grid {
    display: grid;
    gap: 3px;
    grid-auto-flow: row;
}

.year-day-square {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid rgba(0,0,0,0.05);
}

.year-day-square.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.year-day-square:not(.empty):hover {
    transform: scale(1.5);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    border-color: rgba(0,0,0,0.3);
}

/* Renk seviyeleri - GitHub tarzı yeşil tonları */
.year-day-square.level-0 {
    background: #ebedf0;
}

.year-day-square.level-1 {
    background: #c6e48b;
}

.year-day-square.level-2 {
    background: #7bc96f;
}

.year-day-square.level-3 {
    background: #239a3b;
}

.year-day-square.level-4 {
    background: #196127;
}

.year-day-square.today {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.5);
}

.year-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 12px;
}

.year-legend .year-day-square {
    cursor: default;
}

.year-legend .year-day-square:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive for Month/Year Views */
@media (max-width: 1200px) {
    .year-heatmap-container {
        padding: 16px;
    }
    
    .year-day-square {
        width: 10px;
        height: 10px;
    }
    
    .year-day-label {
        height: 10px;
        font-size: 8px;
    }
    
    .year-heatmap-grid {
        gap: 2px;
    }
    
    .year-day-labels {
        gap: 2px;
    }
}

@media (max-width: 900px) {
    .year-heatmap-container {
        padding: 12px;
    }
    
    .year-day-square {
        width: 9px;
        height: 9px;
    }
    
    .year-day-label {
        height: 9px;
        font-size: 7px;
    }
    
    .year-month-label {
        font-size: 9px;
    }
    
    .month-day-cell {
        min-height: 120px;
        padding: 6px;
    }
    
    .month-vitamin-label {
        font-size: 10px;
    }
    
    .month-vitamin-checkbox {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 600px) {
    .calendar-grid[style*="repeat(7"] {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 4px !important;
    }
    
    .month-day-cell {
        min-height: 100px;
        padding: 4px;
    }
    
    .month-day-number {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .month-vitamin-list {
        gap: 2px;
        margin-top: 4px;
    }
    
    .month-vitamin-item {
        padding: 2px 3px;
        gap: 4px;
    }
    
    .month-vitamin-label {
        font-size: 9px;
    }
    
    .month-vitamin-checkbox {
        width: 11px;
        height: 11px;
    }
    
    .month-day-empty {
        font-size: 9px;
        margin-top: 8px;
    }
    
    .vitamin-count {
        font-size: 10px;
    }
    
    .year-heatmap-container {
        padding: 8px;
    }
    
    .year-day-square {
        width: 8px;
        height: 8px;
    }
    
    .year-day-label {
        height: 8px;
        font-size: 7px;
    }
    
    .year-month-label {
        font-size: 8px;
    }
    
    .year-heatmap-grid {
        gap: 2px;
    }
    
    .year-day-labels {
        gap: 2px;
    }
    
    .year-legend {
        justify-content: center;
        font-size: 10px;
    }
    
    .year-legend .year-day-square {
        width: 8px;
        height: 8px;
    }
}

/* ========================================
   VİTAMİN EKLEME SAYFASI STİLLERİ
   ======================================== */

/* Ana Layout */
.add-vitamin-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body:has(.add-vitamin-main) .container,
body:has(#editVitaminPage) .container {
    padding: 12px;
    row-gap: 12px;
    column-gap: 12px;
}

body:has(.add-vitamin-main) .page-header,
body:has(#editVitaminPage) .page-header {
    margin-bottom: 12px;
}

body:has(.add-vitamin-main) .page-header h2,
body:has(#editVitaminPage) .page-header h2 {
    font-size: 1.1rem;
    margin-bottom: 0;
}


/* Vitamin Ekleme Formu */
.vitamin-form-section .card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
}

.vitamin-form-section h2 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.vitamin-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/* Form actions her zaman tam genişlikte ve sağa yaslı */
.vitamin-form .form-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

/* Desktop'ta 2 sütunlu grid */
@media (min-width: 768px) {
    .vitamin-form {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Tam genişlik elemanlar */
    .vitamin-form .form-group:has(.radio-group),
    .vitamin-form .form-group:has(#customVitaminName),
    .vitamin-form .form-group:has(#daySelectorContainer),
    .vitamin-form .form-group:has(.day-selector) {
        grid-column: 1 / -1;
    }
    
    /* Özel isim tam genişlik */
    .vitamin-form .form-group:has(#customName) {
        grid-column: 1 / -1;
    }
    
    /* Doz ve saat yan yana */
    .vitamin-form .form-group:has(#dosage) {
        grid-column: 1;
    }
    
    .vitamin-form .form-group:has(#time) {
        grid-column: 2;
    }
}

/* Daha geniş ekranlarda 3 sütunlu grid */
@media (min-width: 1024px) {
    .vitamin-form {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    /* Tam genişlik elemanlar */
    .vitamin-form .form-group:has(.radio-group),
    .vitamin-form .form-group:has(#customVitaminName),
    .vitamin-form .form-group:has(#daySelectorContainer),
    .vitamin-form .form-group:has(.day-selector) {
        grid-column: 1 / -1;
    }
    
    /* Özel isim tek sütun, doz ve saat yan yana */
    .vitamin-form .form-group:has(#customName) {
        grid-column: 1;
    }
    
    .vitamin-form .form-group:has(#dosage) {
        grid-column: 2;
    }
    
    .vitamin-form .form-group:has(#time) {
        grid-column: 3;
    }
}

.vitamin-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vitamin-form .form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.vitamin-form .form-control {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.vitamin-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

/* Gün Seçici */
.day-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 4px;
}

.day-checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    background: var(--bg-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.day-checkbox-label:hover {
    background: rgba(74, 144, 226, 0.1);
}

.day-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.day-checkbox:checked + * {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn-secondary,
.form-actions .btn-primary {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.form-actions .btn-secondary:hover {
    background: #e8e8e8;
}

.form-actions .btn-primary {
    background: var(--primary-color);
    color: white;
}

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

/* AI Asistan */
.ai-assistant-section {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

/* Responsive */
@media (max-width: 1200px) {
    .add-vitamin-main {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 900px) {
    .add-vitamin-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    header {
        order: 0;
    }
    
    .ai-assistant-section {
        order: 2;
        grid-column: 1;
    }
    
    .vitamin-form-section {
        order: 1;
    }
    
    .day-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-secondary,
    .form-actions .btn-primary {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 12px;
        gap: 12px;
    }
    
    .vitamin-form-section .card {
        padding: 12px;
    }
    
    .day-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .day-checkbox-label {
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* ========================================
   GIDA TAKİP SİSTEMİ STİLLERİ
   ======================================== */

/* Ana Layout */
.food-tracker-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Gıda Ekleme Formu */
.food-form-section .card {
    background: white;
    border-radius: 12px;
    padding: 16px; /* Ekstra padding azaltıldı */
    box-shadow: var(--shadow);
}

.food-form-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.food-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.amount-input-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
}

/* Besin Özeti */
.nutrition-summary-section .card {
    background: white;
    border-radius: 12px;
    padding: 16px; /* Ekstra padding azaltıldı */
    box-shadow: var(--shadow);
}

.nutrition-summary-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.nutrition-overview {
    margin-bottom: 24px;
}

.nutrition-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nutrition-details h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    transition: all 0.2s;
}

.nutrition-item.status-sufficient {
    border-left-color: var(--success-color);
    background: rgba(82, 196, 26, 0.05);
}

.nutrition-item.status-low {
    border-left-color: #faad14;
    background: rgba(250, 173, 20, 0.05);
}

.nutrition-item.status-deficient {
    border-left-color: var(--danger-color);
    background: rgba(255, 77, 79, 0.05);
}

.nutrition-label {
    font-weight: 500;
    color: var(--text-primary);
}

.nutrition-value {
    font-weight: 600;
    color: var(--text-primary);
}

.nutrition-percentage {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Günlük Yemekler */
.daily-meals-section .card {
    background: white;
    border-radius: 12px;
    padding: 16px; /* Ekstra padding azaltıldı */
    box-shadow: var(--shadow);
}

.meals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.meals-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-date {
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 6px;
    min-width: 100px;
    text-align: center;
}

.daily-meals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meal-group {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.meal-type-header {
    background: var(--primary-color);
    color: white;
    padding: 12px 16px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.meal-items {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    transition: all 0.2s;
}

.meal-item:hover {
    background: rgba(74, 144, 226, 0.05);
}

.meal-info {
    flex: 1;
}

.meal-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.meal-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.meal-amount {
    font-weight: 500;
}

.meal-calories {
    color: var(--primary-color);
    font-weight: 500;
}

.meal-notes {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
}

.btn-delete {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.btn-delete:hover {
    background: rgba(255, 77, 79, 0.1);
    transform: scale(1.1);
}

/* Boş Durumlar */
.empty-state, .error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-icon, .error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-style: italic;
}

/* AI Asistan */
.ai-assistant-section {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .ai-assistant-section {
        order: 2;
    }
    
    .food-tracker-main {
        order: 3;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nutrition-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nutrition-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 12px;
        gap: 12px;
    }
    
    .food-form-section .card,
    .nutrition-summary-section .card,
    .daily-meals-section .card {
        padding: 16px;
    }
    
    .meals-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .date-navigation {
        justify-content: center;
    }
    
    .nutrition-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .meal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .btn-delete {
        align-self: flex-end;
    }
}

/* ========================================
   RESPONSIVE: Header & Navigation
   ======================================== */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .header-actions {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        align-items: center;
    }
    
    .nav-link {
        flex: 0 0 auto;
        padding: 6px 8px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .btn-primary {
        flex: 0 0 auto;
        padding: 6px 8px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .language-switcher {
        flex: 0 0 auto;
        padding: 2px;
    }
    
    .lang-btn {
        padding: 5px 7px;
        font-size: 14px;
    }
}

/* ========================================
   LANDING PAGE STYLES
   ======================================== */

.hero-section {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    min-height: auto;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
    color: #333333;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0;
    color: #666666;
    line-height: 1.5;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 16px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.hero-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.hero-btn-primary:hover {
    background: var(--primary-variant);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.hero-btn-secondary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.hero-btn-secondary:hover {
    background: var(--primary-variant);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


.btn-cta-primary, .btn-cta-secondary {
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    border: none;
    outline: none;
    display: block;
    text-align: center;
    width: 100%;
}

.btn-cta-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-cta-primary:hover {
    background: var(--primary-variant);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-cta-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Landing page: tek kolon layout (hero → features) */
body:has(.hero-section) .container {
    grid-template-columns: 1fr;
    gap: 16px;
}

body:has(.hero-section) .hero-section {
    grid-column: 1;
    grid-row: 2;
}

body:has(.hero-section) .features-section {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}



.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow);
    border-color: #cccccc; /* Açık gri */
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: #555555; /* Koyu gri */
    text-align: center;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: center;
}


/* Landing page özel stiller: AI ve navigasyon butonları gizle */
body:has(.hero-section) .header-actions .nav-link,
body:has(.hero-section) .header-actions .btn-primary {
    display: none;
}

body:has(.hero-section) #aiChatPanel {
    display: none;
}

/* Header'ı tam genişlikte tut */
body:has(.hero-section) header {
    grid-column: 1 / -1 !important;
}

body:has(.hero-section) .container {
    grid-template-columns: 1fr;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tablet responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Responsive: Landing Page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem; /* Material H3 for mobile */
    }

    .hero-subtitle {
        font-size: 1.125rem; /* Material H6 */
    }

    .hero-section {
        padding: 48px 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .features-section {
        padding: 20px 12px;
    }


    .feature-card {
        padding: 16px 12px;
    }


    .hero-actions {
        width: 100%;
    }

    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        max-width: 320px;
        padding: 16px 24px;
        font-size: 0.9rem;
    }

    /* Mobil'de Apple-style layout */
    body:has(.hero-section) .container {
        gap: 24px;
        padding: 20px;
    }

    body:has(.hero-section) .hero-section {
        margin-bottom: 32px;
        padding: 60px 30px;
        border-radius: 16px;
    }

    body:has(.hero-section) .features-section {
        margin-bottom: 32px;
        padding: 40px 20px;
        border-radius: 16px;
    }
}

/* ========================================
   AUTHENTICATION STYLES
   ======================================== */

.auth-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
}

.auth-section {
    width: 100%;
    max-width: 480px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.auth-form .form-control {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.auth-form .form-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.auth-form .btn-primary {
    padding: 12px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-form .btn-primary:hover {
    background: var(--primary-variant);
}

.auth-form .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Error and Success Messages */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #c62828;
    font-size: 14px;
    margin: 10px 0;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #2e7d32;
    font-size: 14px;
    margin: 10px 0;
}

/* Auth pages - hide AI panel */
body:has(.auth-main) #aiChatPanel {
    display: none;
}

body:has(.auth-main) .container {
    grid-template-columns: 1fr;
}

/* Auth pages - center header */
body:has(.auth-main) header {
    justify-content: center;
    position: relative;
}

body:has(.auth-main) .header-actions {
    position: absolute;
    right: 0;
}

/* User Info Styles */
.user-info {
    display: inline-block;
    margin-right: 8px;
}

.user-profile-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 8px; /* Daha küçük padding */
    border-radius: 4px;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Daha küçük gap */
    font-size: 0.9rem; /* Daha küçük font */
}

.user-profile-link:hover {
    background-color: var(--bg-light);
    text-decoration: none;
    color: var(--text-primary);
}

.user-profile-link:active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Profile Page Styles */
.profile-content {
    display: grid;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-1);
}

.profile-section h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input[readonly] {
    background-color: var(--bg-light);
    cursor: not-allowed;
}

.settings-form {
    display: grid;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-weight: 500;
    color: var(--text-primary);
}

.setting-item select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Message Styles */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}

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

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-content {
        gap: 24px;
        padding: 0 16px;
    }

    .profile-section {
        padding: 20px 16px;
    }

    .profile-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* User Container */
.user-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid white;
    color: white;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logout-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    background: #dc3545;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.logout-button:hover {
    background: #c82333;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Language Toggle */
.lang-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid white;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-toggle:hover {
    background: #e9ecef;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.current-lang {
    font-weight: 600;
}
