/* Authentication Modal Styles */

.cb-auth-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-auth-modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: cbModalSlideIn 0.3s ease-out;
}

@keyframes cbModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cb-auth-modal-header {
    background: linear-gradient(135deg, #A22C2A, #C74A48);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cb-auth-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.cb-auth-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.cb-auth-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cb-auth-modal-body {
    padding: 2rem 1.5rem;
}

.cb-auth-form {
    width: 100%;
}

.cb-form-group {
    margin-bottom: 1.5rem;
}

.cb-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.cb-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cb-form-group input:focus {
    outline: none;
    border-color: #A22C2A;
}

.cb-auth-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #A22C2A, #C74A48);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cb-auth-btn:hover {
    background: linear-gradient(135deg, #8B2422, #B5403E);
    transform: translateY(-1px);
}

.cb-auth-btn:active {
    transform: translateY(0);
}

.cb-auth-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.cb-form-group p {
    text-align: center;
    margin: 1rem 0 0 0;
    font-size: 0.9rem;
}

.cb-form-group a {
    color: #A22C2A;
    text-decoration: none;
    font-weight: 600;
}

.cb-form-group a:hover {
    text-decoration: underline;
}

.cb-auth-modal-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.cb-auth-message {
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
}

.cb-auth-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cb-auth-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* User Status Styles */
.cb-user-status {
    background: linear-gradient(135deg, #A22C2A, #C74A48);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cb-user-status p {
    margin: 0;
    font-weight: 600;
}

.cb-logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.cb-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Login Required Indicator */
.cb-login-required {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.cb-category-item[data-requires-login="true"] {
    position: relative;
    cursor: pointer;
}

.cb-category-item[data-requires-login="true"]:hover .cb-login-required {
    opacity: 1;
}

.cb-category-item[data-requires-login="true"]:hover .cb-category-image {
    filter: brightness(0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cb-auth-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cb-auth-modal-body {
        padding: 1.5rem 1rem;
    }
    
    .cb-auth-modal-footer {
        padding: 0 1rem 1rem 1rem;
    }
    
    .cb-user-status {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cb-auth-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .cb-auth-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .cb-auth-modal-body {
        padding: 1rem 0.75rem;
    }
    
    .cb-form-group {
        margin-bottom: 1rem;
    }
    
    .cb-form-group input {
        padding: 0.6rem;
    }
    
    .cb-auth-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* User Area Styles */
.cb-user-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.cb-user-area-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #A22C2A, #C74A48);
    color: white;
    border-radius: 8px;
}

.cb-user-area-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 600;
}

.cb-user-area-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cb-user-area-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 2rem;
}

.cb-tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.cb-tab-btn.active,
.cb-tab-btn:hover {
    color: #A22C2A;
    border-bottom-color: #A22C2A;
}

.cb-tab-content {
    display: none;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.cb-tab-content.active {
    display: block;
}

.cb-tab-content h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

.cb-bookings-list p {
    margin: 0;
    padding: 1rem;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #A22C2A;
}

.cb-bookings-list a {
    color: #A22C2A;
    text-decoration: none;
    font-weight: 600;
}

.cb-bookings-list a:hover {
    text-decoration: underline;
}

.cb-profile-info {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
}

.cb-profile-info p {
    margin: 0 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.cb-profile-info p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cb-user-area-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    text-align: center;
    margin: 2rem 0;
}

/* Responsive User Area */
@media (max-width: 768px) {
    .cb-user-area {
        padding: 1rem;
    }
    
    .cb-user-area-header {
        padding: 1.5rem 1rem;
    }
    
    .cb-user-area-header h2 {
        font-size: 1.5rem;
    }
    
    .cb-user-area-tabs {
        flex-direction: column;
    }
    
    .cb-tab-btn {
        padding: 0.75rem 1rem;
        text-align: center;
        border-bottom: 1px solid #ddd;
        border-right: 3px solid transparent;
    }
    
    .cb-tab-btn.active,
    .cb-tab-btn:hover {
        border-bottom-color: #ddd;
        border-right-color: #A22C2A;
    }
    
    .cb-tab-content {
        padding: 1rem;
    }
}
