* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #121212;
    color: #ffffff;
    direction: ltr;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-container {
    display: none;
}

.search-wrapper {
    display: flex;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    width: 100%;
    max-width: 600px;
}

#searchInput {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 16px;
    background: transparent;
    color: #ffffff;
    width: 100%;
}

#searchBtn {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #4CAF50;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

#searchBtn:hover {
    background: rgba(76, 175, 80, 0.1);
}

#searchBtn svg {
    width: 20px;
    height: 20px;
}

.api-info {
    display: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.app-card {
    display: flex;
    align-items: start;
    gap: 15px;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
    transition: 0.3s;
    color: #ffffff;
}

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

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

.app-details {
    flex: 1;
}

.app-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.back-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    margin-bottom: 20px;
    cursor: pointer;
}

.back-btn:hover {
    background: #45a049;
}

.app-details-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #ffffff;
}

.app-details-view .app-icon {
    width: 150px;
    height: 150px;
    border-radius: 25px;
    margin-bottom: 20px;
}

.app-details-view .app-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.app-details-view .app-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.app-details-view .app-header .app-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
}

.app-details-view .app-header-details {
    flex: 1;
    text-align: left;
}

.app-details-view .app-header-details .app-name {
    font-size: 20px;
    font-weight: bold;
}

.app-details-view .app-info {
    text-align: left;
    width: 100%;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}

.app-details-view .app-info p {
    color: #bbbbbb;
    margin-bottom: 10px;
}

.download-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 10px;
    background: #4CAF50;
    color: white;
    text-align: center;
    border: none;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: none;
}

.download-btn:hover {
    background: #45a049;
}

.download-btn.blue-download {
    background: #007bff;  
    color: white;
}

.download-btn.blue-download:hover {
    background: #0056b3;  
}

.error-message {
    background: #2c2c2c;
    color: #ff6b6b;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fixed-search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #121212;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#home-page .container {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .search-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .fixed-search-container {
        padding: 10px;
    }

    #home-page .container {
        padding-top: 70px;
    }
}

.fixed-search-container .search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}