/* Favori Sistemi CSS */

/* Favori Buton Stilleri */
.favBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.favBtn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favBtn i {
    font-size: 16px;
    color: #666;
    transition: all 0.2s ease;
}

.favBtn:hover i {
    color: var(--primary-color);
}

.favBtn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.favBtn.active i {
    color: white;
}

/* Minimal Modal Stilleri */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
}

.custom-modal-container {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-modal.show .custom-modal-container {
    transform: scale(1) translateY(0);
}

.custom-modal-header {
    background: var(--card-bg);
    color: var(--text-dark);
    padding: 20px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--tertiary-color);
}

.custom-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.custom-modal-title i {
    color: var(--primary-color);
    font-size: 14px;
}

.custom-modal-close {
    background: none;
    border: none;
    color: var(--text-dark-low);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-close:hover {
    background: var(--tertiary-color);
    color: var(--text-dark);
}

.custom-modal-body {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.custom-modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--tertiary-color);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    background: var(--bg-color-low);
}

/* Section Stilleri */
.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tertiary-color);
}

.section-title i {
    color: var(--primary-color);
    font-size: 12px;
}

/* Loading Spinner for Cards */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.loading-spinner i {
    font-size: 16px;
}

/* Favori Listeleri Grid */
.favorite-lists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.favorite-list-card {
    background: var(--card-bg);
    border: 1px solid var(--tertiary-color);
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.favorite-list-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(252, 80, 33, 0.1);
    transform: translateY(-1px);
}

.favorite-list-card:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.favorite-list-card:disabled:hover {
    transform: none;
    box-shadow: none;
}

.list-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.list-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.list-info {
    flex: 1;
    min-width: 0;
}

.list-name {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-count {
    font-size: 11px;
    color: var(--text-dark-low);
}

.list-card-body {
    margin-bottom: 0;
}

.list-description {
    margin: 0;
    font-size: 12px;
    color: var(--text-dark-low);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Yeni Liste Oluşturma */
.new-list-section {
    background: var(--bg-color-low);
    border: 1px solid var(--tertiary-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

/* Yeni Liste Oluşturma Butonu */
.new-list-button-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tertiary-color);
}

.new-list-button-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #e65a2b);
    border: none;
    box-shadow: 0 2px 8px rgba(252, 80, 33, 0.2);
    transition: all 0.3s ease;
}

.new-list-button-section .btn-primary:hover {
    background: linear-gradient(135deg, #e65a2b, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 80, 33, 0.3);
}

.new-list-button-section .btn-primary:active {
    transform: translateY(0);
}

/* Renk Seçici */
.color-picker-group {
    margin-bottom: 12px;
}

.color-options {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--text-dark);
    transform: scale(1.1);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Boş Liste Mesajı */
.no-lists-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dark-low);
}

.no-lists-message i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-lists-message p {
    margin: 0;
    font-size: 14px;
}

/* Buton Stilleri */
.btn-block {
    width: 100%;
    justify-content: center;
}

/* Form Stilleri */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 13px;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--tertiary-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--card-bg);
    color: var(--text-dark);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(252, 80, 33, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 70px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-suffix {
    position: absolute;
    right: 12px;
    color: var(--text-dark-low);
    font-weight: 500;
    font-size: 13px;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.checkbox-label {
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

/* Button Stilleri */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    min-width: 100px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #e65a2b;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: var(--tertiary-color);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--tertiary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

/* Login Required Message */
.login-required-message {
    text-align: center;
    padding: 40px 20px;
}

.login-content i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    opacity: 0.8;
}

.login-content h4 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}

.login-content p {
    margin: 0 0 24px 0;
    color: var(--text-dark-low);
    font-size: 14px;
    line-height: 1.5;
}

.login-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-login,
.btn-register {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
}

.btn-login {
    background: var(--primary-color);
    color: white;
}

.btn-login:hover {
    background: #e65a2b;
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-register {
    background: var(--tertiary-color);
    color: var(--text-dark);
}

.btn-register:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

.btn-register:active {
    transform: translateY(0);
}

.btn-login i,
.btn-register i {
    font-size: 12px;
}

.btn-login:hover i,
.btn-register:hover i {
    transform: scale(1.1);
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--tertiary-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-container p {
    margin: 0;
    color: var(--text-dark-low);
    font-size: 14px;
}

/* Price Alert Container */
.price-alert-container {
    margin-top: 8px;
    padding: 12px;
    background: var(--bg-color-low);
    border-radius: 6px;
    border: 1px solid var(--tertiary-color);
}

/* Toast Messages */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border: 1px solid var(--tertiary-color);
}

.custom-toast.show {
    transform: translateX(0);
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--tertiary-color);
}

.success-toast .toast-header {
    border-bottom-color: #10b981;
}

.error-toast .toast-header {
    border-bottom-color: #ef4444;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-dark-low);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.toast-close:hover {
    background: var(--tertiary-color);
    color: var(--text-dark);
}

.toast-body {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-modal-container {
        max-width: 95%;
        margin: 20px;
    }

    .custom-modal-body {
        padding: 16px 20px;
    }

    .custom-modal-header {
        padding: 16px 20px 12px;
    }

    .custom-modal-footer {
        padding: 12px 20px 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 16px;
        font-size: 14px;
    }

    .login-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-login,
    .btn-register {
        width: 100%;
        max-width: 200px;
    }

    .favBtn {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }

    .favBtn i {
        font-size: 14px;
    }

    .favorite-lists-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

.favBtn.success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}