/* APK Listing - Frontend styles */
/* Links: no underline site-wide */
a { text-decoration: none !important; }
a:hover { text-decoration: none !important; }

:root {
    --header-color: #1a1a2e;
    --footer-color: #16213e;
    --card-color: #ffffff;
    --button-color: #0f3460;
    --accent-color: #e94560;
}

.site-header .navbar { padding: 0.5rem 0; }
.site-logo { border-radius: 8px; object-fit: cover; }
.site-main { min-height: 60vh; padding: 1.5rem 0 2rem; }
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-right: 1rem; }
.social-links a { color: rgba(255,255,255,0.8); font-size: 1.25rem; margin-right: 0.75rem; }
.social-links a:hover { color: #fff; }

/* Sidebar */
.sidebar-box { background: #f8f9fa; border-radius: 8px; padding: 1rem; }
.sidebar-box .border-bottom:last-child { border-bottom: none !important; }

/* App cards */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.apps-grid-index { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 992px) { .apps-grid-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .apps-grid-index { grid-template-columns: 1fr; } }
.app-card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.app-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }
.app-card-link { display: flex; align-items: flex-start; padding: 1rem; text-decoration: none; color: inherit; flex: 1; }
.app-card-icon { flex-shrink: 0; margin-right: 1rem; }
.app-card-icon img { border-radius: 12px; width: 64px; height: 64px; object-fit: cover; }
.app-card-body { min-width: 0; }
.app-card-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.25rem; color: #1a1a2e; }
.app-card-desc { font-size: 0.875rem; color: #555; margin: 0 0 0.5rem; line-height: 1.4; }
.app-card-developer { font-size: 0.875rem; color: #333; margin: 0 0 0.15rem; }
.app-card-category { font-size: 0.75rem; color: #666; }
.app-card-dates { font-size: 0.75rem; color: #888; }
.app-card-date { font-size: 0.8rem; color: #888; margin: 0; }
.app-card-meta { font-size: 0.75rem; color: #777; }
.app-meta-item { margin-right: 0.5rem; }
.app-meta-item a { color: #0f3460; }
.btn-download {
    margin: 0 1rem 1rem;
    color: #fff !important;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: block;
}
.btn-download:hover { color: #fff; opacity: 0.9; }

/* Section titles */
.section-title { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; }
.section-title a { color: inherit; }
.section-title a:hover { color: inherit; }

/* App detail page - slotspkk-style layout + explicit colors */
.app-details { background-color: #ffffff; border: 1px solid #e9ecef; color: #212529; }
.breadcrumbs { font-size: 0.9rem; color: #495057; }
.breadcrumbs a { color: #0d6efd; }
.breadcrumbs a:hover { color: #0a58ca; }
.app-image { border-radius: 12px; object-fit: cover; border: 1px solid #dee2e6; background-color: #f8f9fa; }
.app-details h1 { font-size: 1.35rem; font-weight: 700; margin: 0 0 0.25rem; line-height: 1.3; color: #1a1a2e; }
.app-details .version { font-size: 0.95rem; color: #212529; }
.app-details .developer { font-size: 0.9rem; color: #495057; }
.app-details .review-data { font-size: 0.9rem; color: #6c757d; }
.app-details .date { font-size: 0.9rem; color: #6c757d; }

/* Social share row - smi (explicit brand colors) */
.smi { border-top: 1px solid #e9ecef; background-color: #f8f9fa; }
.smi .col.fav { padding: 0.5rem !important; }
.smi .col.fav a, .smi .col.favorites .add-favorites { display: flex; align-items: center; justify-content: center; gap: 0.35rem; font-size: 0.8rem; color: #fff; text-decoration: none; }
.smi .col.fav a:hover { color: #fff; opacity: 0.9; }
.smi .col.facebook a { background-color: #1877f2; color: #fff; padding: 0.4rem 0.5rem; border-radius: 6px; }
.smi .col.twitter a { background-color: #1da1f2; color: #fff; padding: 0.4rem 0.5rem; border-radius: 6px; }
.smi .col.linkedin a { background-color: #0a66c2; color: #fff; padding: 0.4rem 0.5rem; border-radius: 6px; }
.smi .col.email a { background-color: #6c5ce7; color: #fff; padding: 0.4rem 0.5rem; border-radius: 6px; }
.smi .col.whatsapp a { background-color: #25d366; color: #fff; padding: 0.4rem 0.5rem; border-radius: 6px; }
.smi .col.favorites .add-favorites { color: #e74c3c; cursor: pointer; font-size: 0.8rem; background: transparent; }
.smi .col.favorites .add-favorites:hover { opacity: 0.9; }

/* Download button - Latest Version (green) */
.download-btn { display: inline-flex; align-items: center; background-color: #28a745; color: #fff !important; padding: 0.6rem 1.25rem; border-radius: 8px; font-weight: 600; text-decoration: none; border: none; font-size: 1rem; }
.download-btn:hover { color: #fff; background-color: #218838; }
.download-btn.disabled { pointer-events: none; opacity: 0.7; cursor: not-allowed; }

/* Tags list (pill style with colors) */
.tags-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags-list li { display: inline; }
.tags-list a { display: inline-block; padding: 0.35rem 0.75rem; background-color: #e9ecef; border-radius: 6px; font-size: 0.85rem; color: #212529; text-decoration: none; border: 1px solid #dee2e6; }
.tags-list a:hover { background-color: #0d6efd; color: #fff; border-color: #0d6efd; }

/* App description - Show More (click to show full article) */
.app-description .js-more-about { display: block; max-height: 8em; overflow: hidden; position: relative; font-size: 0.95rem; line-height: 1.6; color: #212529; transition: max-height 0.3s ease; }
.app-description .js-more-about.expanded { max-height: none; overflow: visible; }
.rm-link { font-size: 0.9rem; color: #0d6efd; }
.rm-link:hover { color: #0a58ca; }
.js-show-more { pointer-events: auto; }

/* Star rating input (drag/click) */
.star-rating-input { display: inline-flex; align-items: center; gap: 0.25rem; user-select: none; }
.star-rating-input .star { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; cursor: pointer; color: #dee2e6; }
.star-rating-input .star.active { color: #ffc107; }
.star-rating-input:focus { outline: 2px solid rgba(13,110,253,0.35); outline-offset: 2px; border-radius: 6px; }

/* Rate the App - up/down (red / green) */
.up-down .down { background-color: #dc3545; color: #fff; }
.up-down .up { background-color: #28a745; color: #fff; }
.up-down .rate_app { color: inherit; display: flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer; }
.up-down .rate_app:disabled { cursor: default; opacity: 0.8; }
.up-down .rate_app.voted { cursor: default; opacity: 0.9; }
.up-down .vote-icon { width: 24px; height: 24px; fill: currentColor; }
.up-down #down, .up-down #up { font-weight: 600; color: #fff; }

/* User Reviews block */
.add-comment { background-color: #28a745 !important; border-color: #28a745; color: #fff !important; }
.add-comment:hover { background-color: #218838 !important; color: #fff !important; }
.review-title h4 { font-size: 1.1rem; margin: 0 0 0.5rem; color: #212529; }
.review-title .stars { color: #ffc107; font-size: 1.1rem; }
.review-title .star-not-checked { margin-right: 0.1rem; color: #dee2e6; }
.user-ratings { color: #495057; }
.user-ratings .progress { height: 8px; background-color: #e9ecef; border-radius: 4px; }
.user-ratings .progress-bar { background-color: #28a745; }
.report { color: #0d6efd; }
.report:hover { color: #0a58ca; }

/* Other Apps in Category */
.bg-other { background-color: #f8f9fa; border: 1px solid #e9ecef; }
.bg-other .section-title { font-size: 1.25rem; margin-bottom: 0.75rem; color: #1a1a2e; }
.bg-other .more { color: #0d6efd; font-size: 0.9rem; }
.bg-other .more:hover { color: #0a58ca; }
.app-list .title { font-size: 0.85rem; font-weight: 600; display: block; color: #1a1a2e; }
.app-list .developer { font-size: 0.8rem; color: #6c757d; }
.app-list a:hover .title { color: #0d6efd; }

/* Search box on app page */
.search-form { border: 1px solid #ced4da; border-radius: 6px; background-color: #fff; }
.search-btn { background-color: #0d6efd; color: #fff; border: 1px solid #0d6efd; border-radius: 6px; padding: 0.35rem 0.75rem; }
.search-btn:hover { background-color: #0b5ed7; color: #fff; border-color: #0a58ca; }

/* Download delay box */
.download-delay-box { background: #f8f9fa; border-radius: 12px; padding: 1rem; }
.download-progress { height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; margin-top: 0.5rem; }
.download-progress-bar { height: 100%; background: #28a745; transition: width 0.1s linear; }

/* Categories grid */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.category-card { display: block; padding: 1rem; border-radius: 12px; background: #f8f9fa; text-align: center; text-decoration: none; color: inherit; transition: background 0.2s; }
.category-card:hover { background: #e9ecef; }
.category-card img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; margin-bottom: 0.5rem; }

/* Pagination */
.pagination { margin-top: 2rem; }

/* 404 */
.error-page { text-align: center; padding: 3rem 1rem; }
.error-page h1 { font-size: 4rem; color: #ccc; }

/* Sitemap */
.sitemap-list { column-count: 2; column-gap: 2rem; }
.sitemap-list ul { list-style: none; padding: 0; }
@media (max-width: 768px) { .sitemap-list { column-count: 1; } }
