/* Favorites Page Additional Styles */

/* Tabs Styling */
.tabs-container {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tabs-nav {
    display: flex;
    gap: 0;
    margin-bottom: -1px;
    align-items: center;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
}

.tab-btn:hover {
    background: var(--surface-hover);
    color: var(--text-color);
}

.tab-btn.active {
    background: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--border-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-btn .count-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

.tab-btn.active .count-badge {
    background: var(--success-color);
}

.tabs-actions {
    margin-right: auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.tabs-content {
    padding: 2rem 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Bookmarks Styling */
.bookmarks-container {
    max-width: 100%;
}

.bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bookmark-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.bookmark-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color-light);
}

.bookmark-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bookmark-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.bookmark-notes {
    color: var(--text-light);
    margin: 0.75rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.bookmark-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.bookmark-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: var(--danger-color-dark);
    transform: scale(1.05);
}

/* Favorite Card Updates */
.favorite-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.favorite-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color-light);
}

.favorite-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.favorite-header h3 {
    margin: 0;
    flex: 1;
}

.favorite-header h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.favorite-header h3 a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.favorite-summary {
    color: var(--text-light);
    margin: 0.75rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.favorite-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.favorite-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Modal Enhancements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal {
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow-large);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--surface-hover);
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    pointer-events: none;
}

.toast {
    background: var(--success-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-medium);
    font-family: var(--font-family);
    font-size: 0.9rem;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    animation: slideInToast 0.3s ease-out forwards;
}

.toast.toast-error {
    background: var(--danger-color);
}

.toast.toast-warning {
    background: var(--warning-color);
}

.toast.toast-info {
    background: var(--info-color);
}

@keyframes slideInToast {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToast {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Guest Info Panel */
.guest-info-panel {
    background: linear-gradient(135deg, var(--primary-color-light), var(--secondary-color-light));
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.info-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.info-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.info-text p {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    line-height: 1.6;
}

.info-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.guest-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--info-color);
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--info-color-light);
    border-radius: 8px;
    border-left: 4px solid var(--info-color);
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-light);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tabs-actions {
        margin-right: 0;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    
    .bookmark-header,
    .favorite-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .remove-btn {
        align-self: flex-end;
    }
    
    .info-content {
        flex-direction: column;
        text-align: center;
    }
    
    .info-actions {
        justify-content: center;
    }
    
    .modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tabs-actions .btn {
        flex: 1;
        text-align: center;
    }
    
    .bookmark-item,
    .favorite-card {
        padding: 1rem;
    }
}

/* Animation for content transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty state styling */
.empty-content {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-content i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-content .btn {
    margin-top: 1rem;
}