/* App Store Showcase - Dark Theme */

.appstore-showcase {
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    padding: 40px 20px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header with Logo */
.appstore-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 0;
}

.appstore-logo {
    max-width: 200px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.appstore-logo:hover {
    transform: scale(1.05);
}

/* Grid Layout */
.appstore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .appstore-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual App Item */
.appstore-item {
    background: rgba(28, 28, 30, 0.9);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.appstore-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.appstore-item:hover {
    background: rgba(32, 32, 34, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

/* App Icon */
.app-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.appstore-item:hover .app-icon {
    transform: scale(1.05);
}

/* App Info */
.app-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.app-category {
    font-size: 14px;
    color: #86868b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-description {
    font-size: 15px;
    color: #d1d1d6;
    line-height: 1.5;
    margin: 8px 0;
}

/* App Meta (Rating & Price) */
.app-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    font-size: 14px;
}

.star {
    display: inline-block;
}

.star-full {
    color: #ffcc00;
}

.star-half {
    color: #ffcc00;
    opacity: 0.5;
}

.star-empty {
    color: #48484a;
}

.rating-count {
    font-size: 13px;
    color: #86868b;
}

.app-price {
    font-size: 14px;
    color: #86868b;
    font-weight: 600;
}

/* App Action - GET Button */
.app-action {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.app-get-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    transition: all 0.2s ease;
    min-width: 90px;
    text-transform: uppercase;
}

.app-get-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.app-get-button:active {
    transform: scale(0.98);
}

/* Error State */
.appstore-error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff453a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 59, 48, 0.3);
    font-size: 15px;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.appstore-loading {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Responsive Design */
@media (max-width: 480px) {
    .appstore-showcase {
        padding: 30px 15px;
        border-radius: 12px;
    }
    
    .appstore-logo {
        max-width: 150px;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .app-name {
        font-size: 20px;
    }
    
    .appstore-item {
        padding: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(10, 132, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(10, 132, 255, 0.3);
    color: #ffffff;
}
