/* Purple Apple Store - Client Components */

/* Buttons */
.btn-pa-primary {
    background-color: var(--pa-primary);
    color: var(--pa-white);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(212, 20, 79, 0.2);
}

.btn-pa-primary:hover {
    background-color: var(--pa-primary-dark);
    color: var(--pa-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(212, 20, 79, 0.3);
}

.btn-pa-outline {
    background-color: transparent;
    color: var(--pa-primary);
    border: 2px solid var(--pa-primary);
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-pa-outline:hover {
    background-color: var(--pa-primary);
    color: var(--pa-white);
}

/* Navigation Bar */
.pa-navbar {
    background-color: var(--pa-white);
    height: var(--nav-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.pa-navbar-brand img {
    height: 40px;
}

.pa-nav-links {
    display: flex;
    gap: 32px;
    margin-left: 48px;
}

.pa-nav-link {
    color: var(--pa-text-dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.pa-nav-link:hover, .pa-nav-link.active {
    color: var(--pa-primary);
}

.pa-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--pa-primary);
    border-radius: 2px;
}

.pa-nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.pa-search-wrapper {
    position: relative;
}

.pa-form-control {
    background-color: var(--pa-soft-gray);
    border: 1px solid var(--pa-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.pa-form-control:focus {
    background-color: var(--pa-white);
    border-color: var(--pa-primary);
    box-shadow: 0 0 0 3px rgba(212, 20, 79, 0.1);
    outline: none;
}

.pa-form-label {
    font-weight: 600;
    color: var(--pa-navy);
    margin-bottom: 8px;
    font-size: 14px;
}

.pa-search-input {
    background-color: var(--pa-soft-gray);
    border: 1px solid var(--pa-border);
    border-radius: 20px;
    padding: 8px 16px 8px 40px;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

.pa-search-input:focus {
    outline: none;
    border-color: var(--pa-primary);
    background-color: var(--pa-white);
    width: 300px;
}

.pa-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pa-text-muted);
}

/* Badges */
.pa-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pa-badge-available { background-color: #E8F5E9; color: var(--pa-success); }
.pa-badge-booked { background-color: #FFEBEE; color: var(--pa-danger); }
.pa-badge-warning { background-color: #FFF8E1; color: var(--pa-warning); }

/* Equipment Card */
.pa-eq-card {
    background: var(--pa-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid var(--pa-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pa-eq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.pa-eq-img-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background: var(--pa-soft-gray);
    overflow: hidden;
}

.pa-eq-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pa-eq-card:hover .pa-eq-img {
    transform: scale(1.05);
}

.pa-eq-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pa-eq-brand {
    font-size: 13px;
    color: var(--pa-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.pa-eq-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--pa-navy);
}

.pa-eq-rating {
    color: var(--pa-warning);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pa-eq-price {
    margin-top: auto;
    font-size: 20px;
    font-weight: 700;
    color: var(--pa-primary);
}

.pa-eq-price span {
    font-size: 13px;
    color: var(--pa-text-muted);
    font-weight: 400;
}

/* Category Card */
.pa-cat-card {
    background: var(--pa-white);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--pa-border);
    transition: all 0.3s ease;
}

.pa-cat-card:hover {
    border-color: var(--pa-primary);
    box-shadow: 0 8px 20px rgba(212, 20, 79, 0.1);
}

.pa-cat-icon {
    font-size: 32px;
    color: var(--pa-navy);
    margin-bottom: 16px;
}

/* Mobile Drawer */
.pa-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--pa-white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pa-mobile-drawer.open {
    right: 0;
}

.pa-drawer-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pa-drawer-backdrop.open {
    display: block;
    opacity: 1;
}

/* Forms */
.pa-form-control {
    border: 1px solid var(--pa-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
}

.pa-form-control:focus {
    outline: none;
    border-color: var(--pa-primary);
    box-shadow: 0 0 0 3px var(--pa-primary-light);
}

/* Quantity Control */
.pa-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pa-border);
    border-radius: 8px;
    overflow: hidden;
}

.pa-qty-btn {
    background: var(--pa-soft-gray);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.pa-qty-btn:hover { background: #E0E0E0; }

.pa-qty-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    border-left: 1px solid var(--pa-border);
    border-right: 1px solid var(--pa-border);
}

/* Sticky Bottom Bar (Mobile Booking) */
.pa-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--pa-white);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    padding: 16px 24px;
    display: none;
    z-index: 900;
    border-top: 1px solid var(--pa-border);
}

/* Modals & Loaders */
.pa-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Client Dashboard Sidebar */
.pa-sidebar {
    background-color: var(--pa-white);
    border-right: 1px solid var(--pa-border);
    height: calc(100vh - var(--nav-height));
    position: sticky;
    top: var(--nav-height);
    overflow-y: auto;
    width: 280px;
    padding: 24px 0;
}

.pa-sidebar-section {
    margin-bottom: 24px;
}

.pa-sidebar-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pa-text-muted);
    letter-spacing: 1px;
    padding: 0 24px;
    margin-bottom: 12px;
}

.pa-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pa-sidebar-menu li {
    margin-bottom: 4px;
    padding: 0 16px;
}

.pa-sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--pa-text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pa-sidebar-link i {
    width: 24px;
    font-size: 18px;
    color: var(--pa-text-muted);
    margin-right: 12px;
    transition: all 0.2s ease;
}

.pa-sidebar-link:hover {
    background-color: var(--pa-soft-gray);
    color: var(--pa-primary);
}

.pa-sidebar-link:hover i {
    color: var(--pa-primary);
}

.pa-sidebar-link.active {
    background-color: rgba(212, 20, 79, 0.08);
    color: var(--pa-primary);
    font-weight: 600;
}

.pa-sidebar-link.active i {
    color: var(--pa-primary);
}

.app-main-container {
    display: flex;
    min-height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height);
}

