/**
 * Mobile Homepage Styles
 * Scoped to .funtimes-mobile-home to prevent leaking into desktop
 */

.funtimes-mobile-home {
    background: #fff;
}

.funtimes-mobile-home .mobile-home-main {
    padding: 0;
    margin: 0;
}

.funtimes-mobile-home .mobile-home-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/**
 * FEATURED POST SECTION
 */
.funtimes-mobile-home .mobile-featured {
    margin: 0 0 24px 0;
    padding: 0;
    background: #fff;
}

.funtimes-mobile-home .featured-post {
    margin: 0;
    padding: 0;
}

.funtimes-mobile-home .featured-thumbnail {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.funtimes-mobile-home .featured-thumbnail a {
    display: block;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.funtimes-mobile-home .featured-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.funtimes-mobile-home .featured-content {
    padding: 12px 16px 16px 16px;
    margin: 0;
}

.funtimes-mobile-home .featured-category {
    margin-bottom: 8px;
}

.funtimes-mobile-home .featured-category a {
    display: inline-block;
    padding: 4px 12px;
    background: #ec3237;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.funtimes-mobile-home .featured-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.funtimes-mobile-home .featured-title a {
    color: #000;
    text-decoration: none;
}

.funtimes-mobile-home .featured-title a:hover {
    color: #ec3237;
}

.funtimes-mobile-home .featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.funtimes-mobile-home .featured-meta .meta-author {
    font-weight: 600;
    color: #000;
}

.funtimes-mobile-home .featured-meta .meta-separator {
    color: #ccc;
}

/**
 * LATEST POSTS SECTION
 */
.funtimes-mobile-home .mobile-latest {
    margin-bottom: 32px;
    background: #fafafa;
    padding: 16px;
}

.funtimes-mobile-home .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ec3237;
}

.funtimes-mobile-home .section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.funtimes-mobile-home .view-all {
    font-size: 14px;
    font-weight: 600;
    color: #ec3237;
    text-decoration: none;
}

.funtimes-mobile-home .view-all:hover {
    text-decoration: underline;
}

.funtimes-mobile-home .latest-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.funtimes-mobile-home .latest-post {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    margin: 0;
}

.funtimes-mobile-home .latest-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.funtimes-mobile-home .latest-thumbnail a {
    display: block;
    line-height: 0;
    width: 100%;
    height: 100%;
}

.funtimes-mobile-home .latest-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.funtimes-mobile-home .latest-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.funtimes-mobile-home .latest-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.funtimes-mobile-home .latest-title a {
    color: #000;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.funtimes-mobile-home .latest-title a:hover {
    color: #ec3237;
}

.funtimes-mobile-home .latest-meta {
    font-size: 13px;
    color: #666;
}

/**
 * CATEGORY SECTIONS
 */
.funtimes-mobile-home .mobile-category {
    margin-bottom: 32px;
    background: #fff;
    padding: 16px;
}

.funtimes-mobile-home .category-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.funtimes-mobile-home .category-post {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.funtimes-mobile-home .category-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.funtimes-mobile-home .category-thumbnail {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.funtimes-mobile-home .category-thumbnail a {
    display: block;
    line-height: 0;
    width: 100%;
    height: 100%;
}

.funtimes-mobile-home .category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.funtimes-mobile-home .category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.funtimes-mobile-home .category-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.funtimes-mobile-home .category-title a {
    color: #000;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.funtimes-mobile-home .category-title a:hover {
    color: #ec3237;
}

.funtimes-mobile-home .category-meta {
    font-size: 13px;
    color: #666;
}

/**
 * RESPONSIVE TWEAKS
 */
@media (max-width: 375px) {
    .funtimes-mobile-home .featured-title {
        font-size: 22px;
    }
    
    .funtimes-mobile-home .latest-thumbnail,
    .funtimes-mobile-home .category-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .funtimes-mobile-home .latest-title,
    .funtimes-mobile-home .category-title {
        font-size: 14px;
    }
}

/**
 * ACCESSIBILITY
 */
.funtimes-mobile-home a:focus {
    outline: 2px solid #ec3237;
    outline-offset: 2px;
}

.funtimes-mobile-home img {
    max-width: 100%;
    height: auto;
}

/**
 * PERFORMANCE: Prevent layout shifts
 */
.funtimes-mobile-home .latest-thumbnail,
.funtimes-mobile-home .category-thumbnail {
    aspect-ratio: 1;
}
