/* MenuApp/assets/css/components.css */

/* DATE STRIP */
.date-strip-wrapper {
    margin-top: -45px;
    position: relative;
    z-index: 20;
    padding-bottom: 10px;
}

.date-strip-container {
    display: flex;
    align-items: center;
    padding: 20px;
    padding-bottom: 10px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    height: 100px;
}

.date-strip-container::-webkit-scrollbar {
    display: none;
}

.date-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    width: 60px;
    height: 85px;
    margin-right: 12px;
    border-radius: 22px;
    box-shadow: 0 4px 10px var(--shadow-soft);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.date-card.active {
    background: var(--primary);
    color: white;
    width: 90px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5);
    padding: 0 5px;
}

.date-card .day-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.6;
}

.date-card .day-number {
    font-size: 20px;
    font-weight: 700;
}

.date-card.active .day-name {
    opacity: 1;
}

.date-card.active .day-number {
    font-size: 24px;
}

/* MAIN CARD & CONTENT */
.content-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    margin-top: 10px;
    position: relative;
    z-index: 5;
}

.main-card {
    background: var(--surface);
    border-radius: 28px;
    padding: 25px;
    box-shadow: 0 10px 40px -10px var(--shadow-card);
    width: 100%;
    box-sizing: border-box;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 200px;
    position: relative;
    padding-bottom: 25px;
    transition: background-color 0.3s ease;
}

/* MENU ITEMS */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.card-title h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-main);
}

.card-title span {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
}

.calorie-tag {
    background: #fff1f2;
    color: var(--accent-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="dark"] .calorie-tag {
    background: rgba(239, 68, 68, 0.15);
}

.meal-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.meal-row:last-child {
    margin-bottom: 0;
}

.meal-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
    color: white;
}

.meal-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.meal-details span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Meal Colors */
.type-corba .meal-icon-box {
    background: var(--accent-soup);
    box-shadow: 0 8px 15px -3px rgba(245, 158, 11, 0.3);
}

.type-corba span {
    color: var(--accent-soup);
}

.type-ana .meal-icon-box {
    background: var(--accent-main);
    box-shadow: 0 8px 15px -3px rgba(239, 68, 68, 0.3);
}

.type-ana span {
    color: var(--accent-main);
}

.type-yardimci .meal-icon-box {
    background: var(--accent-side);
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.3);
}

.type-yardimci span {
    color: var(--accent-side);
}

.type-diger .meal-icon-box {
    background: var(--accent-dessert);
    box-shadow: 0 8px 15px -3px rgba(139, 92, 246, 0.3);
}

.type-diger span {
    color: var(--accent-dessert);
}

/* BUTTONS & INPUTS */
.fab-comment-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #94a3b8, #475569);
    color: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(71, 85, 105, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.2s;
    z-index: 20;
}

.fab-comment-btn:active {
    transform: scale(0.95);
}

.comment-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.comment-count-badge.show {
    display: flex;
}

.btn-back-menu {
    width: 40px;
    height: 40px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn-send {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 14px;
    font-family: inherit;
    font-size: 13px;
    background: var(--input-bg);
    color: var(--text-main);
    box-sizing: border-box;
    transition: 0.3s;
    -webkit-user-select: text;
    user-select: text;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input.input-error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05);
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

textarea.form-input {
    resize: none;
    height: 80px;
}

/* COMMENTS SECTION */
.comments-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.comments-header span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.comments-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

[data-theme="dark"] .comment-avatar {
    background: #312e81;
    color: #c7d2fe;
}

.comment-content {
    background: var(--bg);
    padding: 10px 15px;
    border-radius: 0 16px 16px 16px;
    flex: 1;
}

.comment-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.comment-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.comment-time {
    font-size: 11px;
    color: var(--text-sub);
}

.comment-text {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.4;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: var(--text-sub);
    font-size: 13px;
    background: var(--bg);
    border-radius: 16px;
}

/* ANIMATION HELPERS */
#menu-content {
    width: 100%;
}

.view-section {
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.view-section.active {
    display: block;
}

.anim-next-out {
    animation: slideNextOut 0.3s forwards cubic-bezier(0.4, 0.0, 0.2, 1);
}

.anim-next-in {
    animation: slideNextIn 0.3s forwards cubic-bezier(0.0, 0.0, 0.2, 1);
}

.anim-prev-out {
    animation: slidePrevOut 0.3s forwards cubic-bezier(0.4, 0.0, 0.2, 1);
}

.anim-prev-in {
    animation: slidePrevIn 0.3s forwards cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* MODAL & SETTINGS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.modal-content {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding: 25px;
    z-index: 1001;
    transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.modal-overlay.show {
    display: block;
    opacity: 1;
}

.modal-content.show {
    bottom: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.modal-header button {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-sub);
    cursor: pointer;
}

.modal-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 12px;
    text-transform: uppercase;
    display: block;
}

/* THEME SWITCH */
.theme-switch-wrapper {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 16px;
    display: flex;
    position: relative;
    margin-bottom: 25px;
    height: 44px;
    box-sizing: border-box;
}

.theme-slider-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

.theme-switch-wrapper.active-dark .theme-slider-bg {
    transform: translateX(100%);
    background: #334155;
}

.theme-btn {
    flex: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.3s;
}

.theme-btn.active {
    color: var(--text-main);
}

[data-theme="dark"] .theme-btn.active {
    color: white;
}

/* UNI SELECT */
.uni-select-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--input-bg);
    border-radius: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
    color: var(--text-main);
}

.uni-select-item.selected {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
}

[data-theme="dark"] .uni-select-item.selected {
    background: rgba(99, 102, 241, 0.15);
}

.uni-select-item i {
    margin-left: auto;
    display: none;
}

.uni-select-item.selected i {
    display: block;
}