/* AppBrowser Plugin Styles */

/* App Card Styles */
.app-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.app-card .card-img-top {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 1rem auto 0;
}

.app-card .card-body {
    padding: 1rem;
}

.app-card .app-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.app-card .stars {
    color: #ffc107;
    font-size: 0.875rem;
}

.app-card .rating-count {
    font-size: 0.75rem;
    color: #6c757d;
}

.app-card .app-developer {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.app-card .app-price {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.app-card .btn-launch {
    border-radius: 20px;
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
}

/* Featured App Card */
.featured-app-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.featured-app-card:hover {
    transform: translateY(-5px);
}

.featured-app-card .card-body {
    padding: 2rem;
}

.featured-app-card .app-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem;
}

.featured-app-card .btn {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
}

/* Category Section */
.category-section {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.category-link {
    color: #667eea;
    text-decoration: none;
}

.category-link:hover {
    text-decoration: underline;
}

/* Rating Stars */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-stars .star {
    font-size: 1rem;
    color: #e4e5e9;
}

.rating-stars .star.filled {
    color: #ffc107;
}

.rating-stars .star.half-filled {
    position: relative;
    color: #e4e5e9;
}

.rating-stars .star.half-filled::before {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.filter-section .form-check {
    margin-bottom: 0.5rem;
}

.filter-section .form-check-label {
    font-size: 0.875rem;
}

/* Search Bar */
.search-bar {
    margin-bottom: 2rem;
}

.search-bar .input-group {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 50px;
    overflow: hidden;
}

.search-bar input {
    border: none;
    padding: 0.75rem 1.5rem;
}

.search-bar button {
    border: none;
    padding: 0.75rem 1.5rem;
}

/* Sort Dropdown */
.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-dropdown label {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* App Detail Page */
.app-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.app-detail-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 24px;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.app-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-detail-developer {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.app-detail-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-detail-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.app-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.app-detail-actions .btn {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
}

/* Screenshots Gallery */
.screenshots-gallery {
    margin: 2rem 0;
}

.screenshot-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Review Section */
.review-card {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    font-size: 0.75rem;
    color: #6c757d;
}

.review-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.review-text {
    color: #495057;
    font-size: 0.875rem;
}

.review-helpful {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* Submit Form */
.submit-form {
    max-width: 800px;
    margin: 0 auto;
}

.submit-form .form-label {
    font-weight: 500;
}

.submit-form .form-text {
    font-size: 0.75rem;
}

/* Admin Tables */
.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.admin-table .app-logo-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #e2e3e5;
    color: #383d41;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: #6c757d;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .app-card .card-img-top {
        width: 60px;
        height: 60px;
    }
    
    .app-detail-header {
        padding: 2rem 0;
    }
    
    .app-detail-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .app-detail-title {
        font-size: 1.5rem;
    }
    
    .filter-sidebar {
        margin-bottom: 1rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 250px;
}
