/* Global Styles */
:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header Styles */
.header-top {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.search-section {
    border-bottom: 1px solid #dee2e6;
}

/* App Card Styles */
.app-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 100%;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 15px;
    object-fit: cover;
}

.app-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.app-card .rating {
    margin-bottom: 10px;
}

.app-card .app-category,
.app-card .downloads {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

/* Detailed App Card */
.app-card-detailed {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.app-card-detailed:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

.app-icon-xlarge {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
}

/* Category Cards */
.category-card {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 15px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.05);
    color: #fff;
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.category-card span {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.category-card-large {
    display: block;
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.category-card-large:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
    transform: translateY(-5px);
}

.category-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card-large h4 {
    color: #333;
    margin: 10px 0;
    font-weight: 600;
}

/* Section Headers */
.section-header h2 {
    font-weight: 700;
    color: #333;
    font-size: 1.8rem;
}

/* Ad Container */
.ad-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Download Section */
.download-section {
    border: 2px solid var(--success-color);
}

.download-section h3 {
    color: var(--success-color);
}

/* App Detail Page */
.app-detail-header {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-description {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Screenshots */
.screenshot {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.05);
}

/* App Info Box */
.app-info-box {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-info-box table {
    margin-bottom: 0;
}

/* Related Apps */
.related-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.related-app-item {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Review Items */
.review-item {
    border-left: 3px solid var(--primary-color);
}

/* Footer */
.footer {
    margin-top: 50px;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff !important;
}

/* Filter Section */
.filter-section select {
    cursor: pointer;
}

/* Badges */
.badge {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-icon {
        width: 80px;
        height: 80px;
    }
    
    .app-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .category-card {
        padding: 20px 10px;
    }
    
    .ad-container {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .app-card h5 {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Game Card Specific */
.game-card {
    border-left: 4px solid var(--success-color);
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* About Page */
.about-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.feature-box {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-box:hover i {
    color: #fff;
}

/* Utility Classes */
.text-justify {
    text-align: justify;
}

.mt-6 {
    margin-top: 4rem;
}

.mb-6 {
    margin-bottom: 4rem;
}

/* Print Styles */
@media print {
    .navbar, .footer, .ad-container, .btn {
        display: none;
    }
}