/* Mobile Button Popup Menu - Zentrale CSS-Datei */

/* Bottom Sheet Styles */
.ios-bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ios-bottom-sheet-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.ios-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: block;
}

.ios-bottom-sheet.active {
    transform: translateY(0);
}

.ios-bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #C6C6C8;
    border-radius: 2px;
    margin: 12px auto 8px;
}

.ios-bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.ios-bottom-sheet-title {
    font-size: 18px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0;
}

.ios-bottom-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F2F2F7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E8E93;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ios-bottom-sheet-close:hover {
    background: #E5E5EA;
}

.ios-bottom-sheet-content {
    padding: 20px;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
}

/* Navigation Options */
.ios-nav-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ios-nav-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ios-nav-option:hover {
    background: #E9ECEF;
    transform: translateY(-1px);
}

.ios-nav-option.active {
    background: #E3F2FD;
    border-color: #007AFF;
}

.ios-nav-icon {
    width: 48px;
    height: 48px;
    background: #007AFF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 16px;
    flex-shrink: 0;
}

.ios-nav-option.active .ios-nav-icon {
    background: #0056CC;
}

.ios-nav-text {
    flex: 1;
}

.ios-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 4px;
}

.ios-nav-subtitle {
    font-size: 14px;
    color: #8E8E93;
    line-height: 1.3;
}

/* Navigation Button (rechts unten) - nur auf mobilen Geräten */
.ios-nav-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #007AFF !important;
    border-radius: 50%;
    border: none;
    display: none; /* Standardmäßig versteckt */
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3) !important;
    z-index: 100;
    transition: all 0.2s ease;
}

.ios-nav-button:hover {
    background: #0056CC !important;
    transform: scale(1.05);
}

/* Filter-spezifische Styles */
.ios-filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ios-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ios-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #1D1D1F;
}

.ios-filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    font-size: 16px;
    color: #1D1D1F;
    transition: border-color 0.2s ease;
}

.ios-filter-select:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.ios-filter-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.ios-filter-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.ios-filter-button.primary {
    background: #007AFF;
    color: white;
}

.ios-filter-button.primary:hover {
    background: #0056CC;
}

.ios-filter-button.secondary {
    background: #F2F2F7;
    color: #1D1D1F;
}

.ios-filter-button.secondary:hover {
    background: #E5E5EA;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ios-nav-button {
        display: flex;
    }
    
    .ios-bottom-sheet-backdrop,
    .ios-bottom-sheet {
        display: block;
    }
}

@media (min-width: 769px) {
    .ios-nav-button {
        display: none !important;
    }
    
    .ios-bottom-sheet-backdrop,
    .ios-bottom-sheet {
        display: none !important;
    }
}

/* Utility Classes für Desktop-Filter */
.filter-desktop {
    display: block;
}

@media (max-width: 768px) {
    .filter-desktop {
        display: none;
    }
}

/* Mobile Content Padding */
.mobile-content {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px) + 0.5rem);
}

@media (max-width: 768px) {
    .mobile-content {
        padding-top: calc(80px + env(safe-area-inset-top, 0px) + 0.25rem);
    }
}

/* Button Color Variants - Alle verwenden Standard-Styles */

/* Empty State */
.ios-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8E8E93;
}

.ios-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #C6C6C8;
}

.ios-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 8px;
}

.ios-empty-state p {
    font-size: 14px;
    color: #8E8E93;
    line-height: 1.4;
}

/* Action Buttons */
.ios-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.ios-action-button-primary,
.ios-action-button-secondary {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ios-action-button-primary {
    background: #FF3B30;
    color: white;
}

.ios-action-button-primary:hover {
    background: #D70015;
}

.ios-action-button-secondary {
    background: #F2F2F7;
    color: #1D1D1F;
}

.ios-action-button-secondary:hover {
    background: #E5E5EA;
}
