/* AHQ Affirmations App Styles */

#ahq-app-container {
    position: relative;
    min-height: 100vh;
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#ahq-app-content {
    padding-bottom: 70px; /* Space for fixed tabs */
    min-height: calc(100vh - 70px);
}

/* Tab Navigation - Flipkart Style */
#ahq-app-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
}

.ahq-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    background-color: transparent;
    border: none;
    outline: none;
}

.ahq-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    color: #878787;
    transition: color 0.2s ease;
}

.ahq-tab-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.ahq-tab-label {
    font-size: 11px;
    font-weight: 500;
    color: #878787;
    transition: color 0.2s ease;
    text-transform: capitalize;
}

/* Active Tab State - Only highlight icon and label */
.ahq-tab.active .ahq-tab-icon {
    color: #2874f0; /* Flipkart blue */
}

.ahq-tab.active .ahq-tab-label {
    color: #2874f0; /* Flipkart blue */
    font-weight: 600;
}

/* Page Content Styles */
.ahq-page {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.ahq-page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ahq-page-title {
    font-size: 24px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 20px;
}

.ahq-page-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ahq-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #878787;
}

.ahq-placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ahq-placeholder-text {
    font-size: 16px;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #ahq-app-tabs {
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    }
    
    #ahq-app-content {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
    
    .ahq-tab-label {
        font-size: 10px;
    }
    
    .ahq-tab-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    #ahq-app-container {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    
    #ahq-app-tabs {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Loading State */
.ahq-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #878787;
}

/* Prevent text selection on tabs */
.ahq-tab * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
