/* Mobile Responsive Styles */

/* Base container adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    /* Typography adjustments */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    h6 { font-size: 0.9rem !important; }
    
    p, span, div { font-size: 0.9rem !important; }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    /* Grid system adjustments */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Make all columns full width by default on mobile */
    .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9 {
        width: 100%;
    }
    
    /* Table adjustments */
    .table-responsive {
        margin: 0 -0.5rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    /* Navigation adjustments */
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Image adjustments */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Badge adjustments */
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Glass effect adjustments */
    .glass-card {
        margin-bottom: 1rem;
    }
    
    .glass-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .glass-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .container {
        padding: 0.25rem;
    }
    
    /* Even smaller typography */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.1rem !important; }
    h4 { font-size: 1rem !important; }
    h5 { font-size: 0.9rem !important; }
    h6 { font-size: 0.8rem !important; }
    
    p, span, div { font-size: 0.85rem !important; }
    
    /* Smaller padding */
    .card-body {
        padding: 0.75rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    /* Smaller buttons */
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Smaller form elements */
    .form-control {
        font-size: 0.85rem;
        padding: 0.4rem;
    }
    
    /* Smaller navigation */
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    /* Smaller badges */
    .badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    /* Smaller glass elements */
    .glass-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .glass-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* Grid system for cards */
@media (min-width: 768px) {
    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility classes for mobile */
.mobile-stack {
    display: flex;
    flex-direction: column;
}

.mobile-center {
    text-align: center;
}

.mobile-mt-1 {
    margin-top: 0.5rem;
}

.mobile-mb-1 {
    margin-bottom: 0.5rem;
}

.mobile-p-1 {
    padding: 0.5rem;
}

/* Table responsive utilities */
.table-mobile-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-mobile-compact th,
.table-mobile-compact td {
    white-space: nowrap;
    padding: 0.5rem;
}

/* Navigation mobile utilities */
.nav-mobile-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.nav-mobile-scroll .nav-item {
    display: inline-block;
    float: none;
}

/* Image mobile utilities */
.img-mobile-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.img-mobile-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Form mobile utilities */
.form-mobile-stack .form-group {
    margin-bottom: 1rem;
}

.form-mobile-stack label {
    display: block;
    margin-bottom: 0.25rem;
}

/* Button mobile utilities */
.btn-mobile-block {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Card mobile utilities */
.card-mobile-compact {
    margin-bottom: 0.5rem;
}

.card-mobile-compact .card-body {
    padding: 0.75rem;
}

/* List mobile utilities */
.list-mobile-compact {
    padding-left: 1rem;
}

.list-mobile-compact li {
    margin-bottom: 0.25rem;
}

/* Modal mobile utilities */
.modal-mobile-full {
    margin: 0;
    max-width: 100%;
    height: 100%;
}

.modal-mobile-full .modal-content {
    border-radius: 0;
    min-height: 100vh;
}

/* Chat mobile utilities */
.chat-mobile-compact {
    max-height: 60vh;
    overflow-y: auto;
}

.chat-mobile-compact .message {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}

/* Profile mobile utilities */
.profile-mobile-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-mobile-stack img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

/* Dashboard mobile utilities */
.dashboard-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.dashboard-mobile-stats {
    text-align: center;
    padding: 0.5rem;
}

/* Game mobile utilities */
.game-mobile-card {
    margin-bottom: 0.5rem;
}

.game-mobile-card img {
    height: 150px;
    object-fit: cover;
}

/* Community mobile utilities */
.community-mobile-post {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
}

.community-mobile-comment {
    margin-bottom: 0.25rem;
    padding: 0.5rem;
}

/* Swap mobile utilities */
.swap-mobile-item {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
}

.swap-mobile-details {
    font-size: 0.85rem;
}

/* Chat history mobile utilities */
.chat-history-mobile-item {
    padding: 0.5rem;
    margin-bottom: 0.25rem;
}

.chat-history-mobile-time {
    font-size: 0.75rem;
}

/* Return request mobile utilities */
.return-request-mobile-card {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
}

.return-request-mobile-status {
    font-size: 0.85rem;
}

/* Borrow request mobile utilities */
.borrow-request-mobile-card {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
}

.borrow-request-mobile-details {
    font-size: 0.85rem;
}

/* Schedule meeting mobile utilities */
.schedule-mobile-form {
    padding: 0.75rem;
}

.schedule-mobile-time {
    font-size: 0.85rem;
}

/* How it works mobile utilities */
.how-it-works-mobile-step {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
}

.how-it-works-mobile-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* What we offer mobile utilities */
.offer-mobile-card {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
}

.offer-mobile-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
} 