/**
 * Responsive Styles
 * Android Mod Theme
 */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-header__inner {
        grid-template-columns: 140px 1fr;
        gap: 20px;
    }
    
    .game-header__image {
        width: 140px;
        height: 140px;
    }
    
    .game-header__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .game-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .game-sidebar {
        order: -1;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .telegram-btn span {
        display: none;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .header-inner {
        height: 56px;
        padding: 0 16px;
    }
    
    .site-logo a {
        font-size: 20px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .section-title .view-all {
        font-size: 12px;
    }
    
    /* Single Page */
    .game-header {
        padding: 16px 0 24px;
    }
    
    .game-header__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .game-header__image {
        margin: 0 auto;
        width: 120px;
        height: 120px;
    }
    
    .game-header__title {
        font-size: 20px;
    }
    
    .game-header__rating {
        justify-content: center;
    }
    
    .game-info-table {
        max-width: 100%;
    }
    
    .game-header__actions {
        flex-direction: column;
    }
    
    .vote-compact {
        width: 100%;
    }
    
    .vote-compact .vote-btn {
        flex: 1;
    }
    
    .breadcrumbs {
        font-size: 12px;
        justify-content: center;
    }
    
    .content-block {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .download-item__action {
        width: 100%;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Features & Tags */
    .features-block,
    .tags-block {
        padding: 16px;
    }
    
    .feature-badge {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Archive */
    .archive-title {
        font-size: 22px;
    }
    
    /* Search */
    .search-form-inline {
        flex-direction: column;
    }
    
    /* Comments */
    .comment-body {
        padding: 16px;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    /* Pagination */
    .pagination {
        gap: 4px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
    
    /* Footer */
    .footer-main {
        padding: 30px 16px;
    }
    
    .footer-section h4 {
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .header-inner {
        height: 52px;
    }
    
    .site-logo a {
        font-size: 18px;
    }
    
    .search-toggle,
    .menu-toggle {
        width: 38px;
        height: 38px;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .telegram-btn {
        padding: 8px 12px;
    }
    
    /* Cards - 2 columns on mobile, compact style */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-card {
        border-radius: 12px;
    }
    
    .card-image-wrapper {
        border-radius: 12px 12px 0 0;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .card-title {
        font-size: 12px;
        margin-bottom: 4px;
        min-height: 32px;
        -webkit-line-clamp: 2;
    }
    
    .card-rating-overlay {
        padding: 4px 8px;
        border-radius: 6px;
    }
    
    .card-rating .stars i {
        font-size: 9px;
    }
    
    .card-rating .rating-value {
        font-size: 11px;
    }
    
    .card-likes {
        display: none;
    }
    
    .card-meta {
        margin-bottom: 6px;
    }
    
    .card-category {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .card-features {
        display: none;
    }
    
    .card-footer {
        display: none;
    }
    
    .card-editor {
        display: none;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 12px;
    }
    
    .category-card__icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .category-card__name {
        font-size: 12px;
    }
    
    .category-card__count {
        font-size: 10px;
    }
    
    /* Single Page Mobile */
    .game-header__image {
        width: 100px;
        height: 100px;
        border-radius: 16px;
    }
    
    .game-header__title {
        font-size: 18px;
    }
    
    .info-row {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .btn-download-main {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .btn-gplay {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .features-title,
    .tags-title {
        font-size: 15px;
    }
    
    .download-section__title {
        font-size: 16px;
    }
    
    /* Rating - compact on mobile */
    .rating-block {
        padding: 16px;
    }
    
    .rating-block__header {
        margin-bottom: 12px;
    }
    
    .rating-block__icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .rating-star {
        font-size: 22px;
        padding: 3px;
    }
    
    .rating-stars-wrap {
        gap: 4px;
    }
    
    .rating-value {
        font-size: 24px;
    }
    
    .rating-count {
        font-size: 12px;
    }
    
    /* Compact header rating — override */
    .game-header__rating-compact .rating-star {
        font-size: 15px;
        padding: 1px;
    }
    .game-header__rating-compact .rating-stars-wrap {
        gap: 1px;
    }
    .game-header__rating-compact .rating-value {
        font-size: 17px;
    }
    
    /* 404 */
    .error-404 h1 {
        font-size: 80px;
    }
    
    .error-404 h2 {
        font-size: 20px;
    }
    
    .error-404 .btn-home {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    /* Related Games - 2 columns */
    .games-grid--small {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .games-grid--small .game-card {
        border-radius: 12px;
    }
    
    /* Widget in sidebar - compact */
    .widget-game-item {
        padding: 8px;
        gap: 10px;
    }
    
    .widget-game-thumb {
        width: 40px;
        height: 40px;
    }
    
    .widget-game-title {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .card-image-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .card-title {
        font-size: 13px;
    }
}
