/**
 * APK Manager - Tailwind CSS Custom Build
 * Optimized for shortcodes: new_games, trending_games, updated_games, search, news
 * 
 * @package APK_Manager
 * @version 2.1.7
 */

/* Custom Colors */
.text-play-green {
    color: #01875f;
}
.bg-play-green {
    background-color: #01875f;
}
.hover-bg-play-green:hover {
    background-color: #017552;
}
.bg-green-50 {
    background-color: #f0fdf4;
}
.border-play-green {
    border-color: #01875f;
}
.hover\:border-play-green:hover {
    border-color: #01875f;
}
.hover\:text-play-green:hover {
    color: #01875f;
}
.group-hover\:text-play-green:hover {
    color: #01875f;
}
.focus-within\:text-play-green:focus-within {
    color: #01875f;
}

/* Hide Scrollbar */
.hide-scroll::-webkit-scrollbar {
    display: none;
}
.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* APK Manager No Results */
.apkmng-no-results {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

/* Utility Classes */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Layout */
.flex {
    display: flex;
}
.grid {
    display: grid;
}
.hidden {
    display: none;
}
.block {
    display: block;
}
.relative {
    position: relative;
}
.absolute {
    position: absolute;
}
.shrink-0 {
    flex-shrink: 0;
}
.flex-1 {
    flex: 1 1 0%;
}

/* Flexbox */
.flex-col {
    flex-direction: column;
}
.items-center {
    align-items: center;
}
.items-end {
    align-items: flex-end;
}
.justify-between {
    justify-content: space-between;
}

/* Grid */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Gap */
.gap-1 {
    gap: 0.25rem;
}
.gap-2 {
    gap: 0.5rem;
}
.gap-3 {
    gap: 0.75rem;
}
.gap-4 {
    gap: 1rem;
}
.gap-6 {
    gap: 1.5rem;
}
.gap-x-4 {
    column-gap: 1rem;
}
.gap-y-6 {
    row-gap: 1.5rem;
}

/* Spacing - Margin */
.mb-1 {
    margin-bottom: 0.25rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}
.mb-8 {
    margin-bottom: 2rem;
}
.mt-1 {
    margin-top: 0.25rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mt-6 {
    margin-top: 1.5rem;
}
.mx-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.ml-1 {
    margin-left: 0.25rem;
}

/* Spacing - Padding */
.p-2 {
    padding: 0.5rem;
}
.pb-2 {
    padding-bottom: 0.5rem;
}
.pb-4 {
    padding-bottom: 1rem;
}
.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}
.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.px-1\.5 {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
}
.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.pl-3 {
    padding-left: 0.75rem;
}
.pl-10 {
    padding-left: 2.5rem;
}
.pr-3 {
    padding-right: 0.75rem;
}

/* Width & Height */
.w-full {
    width: 100%;
}
.w-14 {
    width: 3.5rem;
}
.w-32 {
    width: 8rem;
}
.h-14 {
    height: 3.5rem;
}
.h-20 {
    height: 5rem;
}
.h-full {
    height: 100%;
}
.min-w-0 {
    min-width: 0px;
}
.min-w-\[100px\] {
    min-width: 100px;
}
.max-w-2xl {
    max-width: 42rem;
}
.max-w-4xl {
    max-width: 56rem;
}
.max-w-6xl {
    max-width: 72rem;
}
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Border */
.border {
    border-width: 1px;
}
.border-none {
    border-style: none;
}
.border-gray-300 {
    border-color: #d1d5db;
}
.rounded {
    border-radius: 0.25rem;
}
.rounded-lg {
    border-radius: 0.5rem;
}
.rounded-full {
    border-radius: 9999px;
}
.rounded-2xl {
    border-radius: 1rem;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}
.overflow-x-auto {
    overflow-x: auto;
}

/* Colors - Background */
.bg-white {
    background-color: #ffffff;
}
.bg-gray-50 {
    background-color: #f9fafb;
}
.bg-gray-100 {
    background-color: #f3f4f6;
}

/* Colors - Text */
.text-white {
    color: #ffffff;
}
.text-gray-400 {
    color: #9ca3af;
}
.text-gray-500 {
    color: #6b7280;
}
.text-gray-600 {
    color: #4b5563;
}
.text-gray-800 {
    color: #1f2937;
}
.text-gray-900 {
    color: #111827;
}
.text-red-300 {
    color: #fca5a5;
}
.text-gray-300 {
    color: #d1d5db;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}
.text-\[8px\] {
    font-size: 8px;
}
.text-\[10px\] {
    font-size: 10px;
}
.font-normal {
    font-weight: 400;
}
.font-medium {
    font-weight: 500;
}
.whitespace-nowrap {
    white-space: nowrap;
}
.text-center {
    text-align: center;
}

/* Hover Effects */
.hover\:underline:hover {
    text-decoration: underline;
}
.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}
.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}
.hover\:bg-green-50:hover {
    background-color: #f0fdf4;
}
.group:hover .group-hover\:underline {
    text-decoration: underline;
}
.group:hover .group-hover\:shadow-md {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.shadow-md {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.focus\:shadow-md:focus {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}
.pointer-events-none {
    pointer-events: none;
}

/* Transform */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-y-1\/2 {
    --tw-translate-y: -50%;
}

/* Position */
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.inset-y-0 {
    top: 0;
    bottom: 0;
}
.top-1\/2 {
    top: 50%;
}
.left-0 {
    left: 0;
}
.right-4 {
    right: 1rem;
}

/* Transitions */
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-300 {
    transition-duration: 300ms;
}

/* Focus */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-white:focus {
    --tw-ring-color: #ffffff;
}
.focus\:bg-white:focus {
    background-color: #ffffff;
}
.group:focus-within .group-focus-within\:text-play-green {
    color: #01875f;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

/* Responsive - SM (640px) */
@media (min-width: 640px) {
    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .sm\:min-w-\[120px\] {
        min-width: 120px;
    }
    .sm\:w-40 {
        width: 10rem;
    }
    .sm\:h-24 {
        height: 6rem;
    }
    .sm\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    .sm\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

/* Responsive - MD (768px) */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Responsive - LG (1024px) */
@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Loading Animation */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

