/* Mobile Home Page Improvements for SHV Tourism */

/* Category Cards Styling */
.category-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #17a2b8;
}

/* Icon Container */
.card-icon-container {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Icon Styling */
.category-icon {
    font-size: 2.5rem;
    color: #17a2b8;
    transition: color 0.3s ease;
}

/* Image icons (like lion.png) - Make them same size as FontAwesome icons */
img.category-icon {
    width: 2.5rem;
    height: 2.5rem;
    max-width: 2.5rem;
    max-height: 2.5rem;
    object-fit: contain;
    filter: none;
}

/* Ensure image icons have proper styling */
.card-icon-container img.category-icon {
    display: block;
    margin: 0 auto;
}

/* Title Container */
.card-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

/* Category Title Styling */
.category-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: #17a2b8;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

/* Remove text decoration from links */
a.text-decoration-none {
    text-decoration: none !important;
}

a.text-decoration-none:hover {
    text-decoration: none !important;
}

/* Container improvements */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid improvements */
.row.g-3 {
    --bs-gutter-x: 15px;
    --bs-gutter-y: 15px;
}

/* Mobile Responsive Design */
@media (max-width: 575px) {
    .category-card {
        padding: 16px 10px;
        min-height: 100px;
        border-radius: 10px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    img.category-icon {
        width: 2rem;
        height: 2rem;
        max-width: 2rem;
        max-height: 2rem;
    }
    
    .category-title {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .card-icon-container {
        margin-bottom: 8px;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row.g-3 {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 10px;
    }
}

/* Small tablets */
@media (min-width: 576px) and (max-width: 767px) {
    .category-card {
        padding: 18px 12px;
        min-height: 110px;
    }
    
    .category-icon {
        font-size: 2.2rem;
    }
    
    img.category-icon {
        width: 2.2rem;
        height: 2.2rem;
        max-width: 2.2rem;
        max-height: 2.2rem;
    }
    
    .category-title {
        font-size: 0.95rem;
    }
}

/* Large tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
    .category-card {
        padding: 20px 15px;
        min-height: 130px;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    img.category-icon {
        width: 2.5rem;
        height: 2.5rem;
        max-width: 2.5rem;
        max-height: 2.5rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
}

/* Large screens */
@media (min-width: 992px) {
    .category-card {
        padding: 25px 20px;
        min-height: 140px;
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    img.category-icon {
        width: 3rem;
        height: 3rem;
        max-width: 3rem;
        max-height: 3rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .category-card {
        transition: none;
    }
    
    .category-card:active {
        transform: scale(0.98);
        background-color: #f8f9fa;
    }
}

/* Ensure proper spacing between rows */
.row.g-3 > * {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .category-card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .category-card:hover {
        background: #374151;
        border-color: #17a2b8;
    }
    
    .category-title {
        color: #e2e8f0;
    }
    
    .category-icon {
        color: #63b3ed;
    }
}

/* High contrast accessibility */
@media (prefers-contrast: high) {
    .category-card {
        border-width: 2px;
        border-color: #000;
    }
    
    .category-card:hover {
        border-color: #0056b3;
        background: #f0f8ff;
    }
    
    .category-title {
        color: #000;
        font-weight: 700;
    }
    
    .category-icon {
        color: #0056b3;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .category-card {
        transition: none;
    }
    
    .category-card:hover {
        transform: none;
    }
    
    .category-icon {
        transition: none;
    }
}
