@media (max-width: 480px) {
    /* Hide description and category in list layout on mobile - keep file size and download count visible */
    .aso-downloads-layout-list .aso-download-list-item p,
    .aso-downloads-layout-list .aso-download-list-item > div:nth-child(2) > div:last-child > span:last-child {
        display: none !important;
    }
}
/* ASO Download Manager Frontend Styles */

.aso-downloads-wrapper {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* List Layout */
.aso-downloads-layout-list {
    display: flex !important;
    flex-direction: column !important;
}

.aso-downloads-layout-list .aso-download-list-item {
    background: #e8fbf9 !important;
    animation: slideInUp 0.3s ease-out;
    width: 100% !important;
}

.aso-downloads-layout-list .aso-download-list-item:hover {
    background: #d9f7f5 !important;
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.aso-downloads-layout-list .aso-download-btn {
    background: #0073aa;
    color: white;
}

.aso-downloads-layout-list .aso-download-btn:hover {
    background: #005a87;
}

/* Grid Layout */
.aso-downloads-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.aso-downloads-layout-grid .aso-download-grid-item {
    background: #e8fbf9 !important;
    animation: slideInUp 0.3s ease-out;
}

.aso-downloads-layout-grid .aso-download-grid-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: #0073aa;
    transform: translateY(-2px);
}

/* Card Layout */
.aso-downloads-layout-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aso-downloads-layout-card .aso-download-card-item {
    background: #e8fbf9 !important;
    animation: slideInUp 0.3s ease-out;
}

.aso-downloads-layout-card .aso-download-card-item:hover {
    background: #d9f7f5 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: #0073aa;
    transform: translateY(-2px);
}

/* Compact Layout */
.aso-downloads-layout-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.aso-downloads-layout-compact .aso-download-compact-item {
    background: #e8fbf9 !important;
}

.aso-downloads-layout-compact .aso-download-compact-item:hover {
    background: #d9f7f5 !important;
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Button Styles */
.aso-download-btn {
    transition: all 0.3s ease;
    font-family: inherit;
}

.aso-download-btn:hover {
    opacity: 0.9;
}

.aso-download-btn:active {
    transform: scale(0.98);
}

.aso-download-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Single Download */
.aso-download-single {
    width: 100%;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Grid Layout - Tablet */
    .aso-downloads-layout-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .aso-downloads-layout-grid .aso-download-grid-item {
        padding: 12px !important;
    }

    .aso-downloads-layout-grid .aso-download-grid-item img {
        width: 48px !important;
        height: 48px !important;
    }

    .aso-downloads-layout-grid .aso-download-grid-item h3 {
        font-size: 14px !important;
    }

    .aso-downloads-layout-grid .aso-download-grid-item p {
        font-size: 12px !important;
    }

    .aso-downloads-layout-grid .aso-download-btn {
        width: 100% !important;
        padding: 10px 12px !important;
        min-height: 44px !important;
    }

    /* Card Layout - Tablet */
    .aso-downloads-layout-card .aso-download-card-item {
        padding: 16px !important;
    }

    .aso-downloads-layout-card .aso-download-card-item > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .aso-downloads-layout-card .aso-download-card-item img {
        width: 48px !important;
        height: 48px !important;
    }

    .aso-downloads-layout-card .aso-download-card-item h3 {
        font-size: 14px !important;
    }

    .aso-downloads-layout-card .aso-download-card-item p:not(:first-of-type) {
        font-size: 12px !important;
    }

    .aso-downloads-layout-card .aso-download-card-item > div:last-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .aso-downloads-layout-card .aso-download-btn {
        width: 100% !important;
        padding: 10px 12px !important;
        min-height: 44px !important;
    }

    /* Compact Layout - Tablet */
    .aso-downloads-layout-compact .aso-download-compact-item {
        flex-basis: calc(50% - 4px) !important;
        display: flex !important;
    }

    .aso-downloads-layout-compact .aso-download-compact-item {
        white-space: normal !important;
    }

    /* List Layout - Tablet: removed to keep tablet same as desktop */
}

@media (max-width: 480px) {
    .aso-downloads-wrapper {
        padding: 0 8px;
    }

    /* Grid Layout - Mobile */
    .aso-downloads-layout-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .aso-downloads-layout-grid .aso-download-grid-item {
        padding: 12px !important;
        flex-direction: column !important;
        text-align: center;
    }

    .aso-downloads-layout-grid .aso-download-grid-item img {
        width: 40px !important;
        height: 40px !important;
    }

    .aso-downloads-layout-grid .aso-download-grid-item h3 {
        font-size: 13px !important;
    }

    .aso-downloads-layout-grid .aso-download-grid-item p {
        font-size: 11px !important;
    }

    .aso-downloads-layout-grid .aso-download-grid-item > div {
        font-size: 10px !important;
    }

    .aso-downloads-layout-grid .aso-download-btn {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
        min-height: 40px !important;
    }

    /* Card Layout - Mobile */
    .aso-downloads-layout-card .aso-download-card-item {
        padding: 12px !important;
    }

    .aso-downloads-layout-card .aso-download-card-item > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 12px !important;
        gap: 8px !important;
    }

    .aso-downloads-layout-card .aso-download-card-item img {
        width: 40px !important;
        height: 40px !important;
    }

    .aso-downloads-layout-card .aso-download-card-item h3 {
        font-size: 13px !important;
    }

    .aso-downloads-layout-card .aso-download-card-item p {
        font-size: 11px !important;
    }

    .aso-downloads-layout-card .aso-download-card-item > div:nth-child(3) {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .aso-downloads-layout-card .aso-download-btn {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
        min-height: 40px !important;
    }

    /* Compact Layout - Mobile */
    .aso-downloads-layout-compact {
        gap: 6px !important;
    }

    .aso-downloads-layout-compact .aso-download-compact-item {
        display: flex !important;
        flex-basis: 100% !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        white-space: normal !important;
        gap: 6px !important;
    }

    .aso-downloads-layout-compact .aso-download-compact-item img {
        width: 20px !important;
        height: 20px !important;
    }

    .aso-downloads-layout-compact .aso-download-compact-item span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1;
    }

    .aso-downloads-layout-compact .aso-download-btn {
        padding: 2px 6px !important;
        font-size: 12px !important;
        margin-left: 0 !important;
    }

    /* List Layout - Mobile */
    .aso-downloads-layout-list .aso-download-list-item {
        padding: 12px !important;
        /* gap removed, wrapper controls spacing */
    }

    .aso-downloads-layout-list .aso-download-list-item img {
        width: 40px !important;
        height: 40px !important;
    }

    .aso-downloads-layout-list .aso-download-btn {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 13px;
        min-height: 40px;
    }

    .aso-downloads-layout-list .aso-download-list-item h3 {
        font-size: 14px !important;
    }

    .aso-downloads-layout-list .aso-download-list-item p {
        font-size: 12px !important;
    }

    .aso-downloads-layout-list .aso-download-list-item > div:nth-child(3) {
        flex-wrap: wrap !important;
        gap: 8px !important;
        font-size: 11px !important;
    }
}
