/* Mobile Responsive Styles for Invester Theme */

/* Base Mobile Styles */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    /* Improved footer for mobile */
    footer {
        width: 100%;
        height: 60px;
        background: #090909;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 99;
        padding: 5px 0;
    }
    
    footer ul {
        display: flex;
        justify-content: space-around;
        padding: 0;
        margin: 0;
    }
    
    footer li {
        width: 20%;
        height: 50px;
        float: left;
        filter: grayscale(100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    footer li img {
        height: 22px;
        display: block;
        margin: 4px auto 2px;
    }
    
    footer li p {
        width: 100%;
        font-size: 10px;
        height: 16px;
        line-height: 16px;
        text-align: center;
        color: #ff3434;
        margin: 0;
        padding: 0;
    }
    
    footer li.action {
        filter: grayscale(0%) !important;
    }
    
    /* Other mobile optimizations */
    .page-header {
        padding: 30px 0;
        margin-bottom: 20px;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    /* Adjust content area to avoid footer overlap */
    .main-content {
        padding-bottom: 70px;
    }
    
    /* Optimize tables for mobile */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Make buttons more touch-friendly */
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Improved form elements for mobile */
    input, select, textarea {
        font-size: 16px !important; /* Prevents iOS zoom on input focus */
    }
    
    /* Better card layouts for mobile */
    .card {
        margin-bottom: 15px;
    }
    
    /* Improve spacing for lists */
    .list-group-item {
        padding: 10px 15px;
    }
    
    /* Better image scaling */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix popup positioning */
    .ak_finance_popou {
        width: 90%;
        margin: auto;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    /* Further reduce footer text size */
    footer li p {
        font-size: 9px;
    }
    
    /* Adjust font sizes for smaller screens */
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    
    /* Single column layouts for tiny screens */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    .col, [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}
