:root {
    --primary-color: #1a73e8;
    --background-color: #000000;
    --card-background: transparent;
    --text-color: #e0e0e0;
    --accent-color: #4285f4;
    --border-color: rgba(255,255,255,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

.app-store, .app-details-page {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

header {
    background-color: transparent;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
}

.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
}

.search-bar input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: var(--text-color);
    caret-color: var(--text-color);
    font-size: 16px;
    margin-left: 8px;
    margin-right: 8px;
}

.search-bar .material-icons {
    color: var(--text-color);
    opacity: 0.7;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.app-card {
    display: flex;
    align-items: center;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.3s;
}

.app-card:hover {
    background-color: rgba(255,255,255,0.05);
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-right: 16px;
    object-fit: cover;
}

.app-details {
    flex-grow: 1;
}

.app-name {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 4px;
}

.app-rating {
    display: flex;
    align-items: center;
    color: #a0a0a0;
    font-size: 14px;
}

.app-rating .material-icons {
    font-size: 16px;
    color: #fbbc05;
    margin-right: 4px;
}

.app-rank {
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.app-rank.trusted {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.app-rank.untrusted {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.app-rating .app-rank {
    margin-left: 8px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .app-store, .app-details-page {
        padding: 0 8px;
    }
}

/* App Details Page Styles - Improved Responsiveness */
.app-details-page {
    padding: 16px;
}

.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.app-header-icon {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    margin-bottom: 16px;
    object-fit: cover;
}

.app-header-info {
    width: 100%;
    text-align: center;
}

.app-header-name {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
}

.app-header-developer {
    color: #5f6368;
    margin-bottom: 16px;
}

.download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.download-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.1s;
}

.download-btn.obb-download {
    background-color: #4CAF50; 
}

.download-btn:hover {
    background-color: #3367d6;
}

.download-btn.obb-download:hover {
    background-color: #388E3C;
}

.no-obb-message {
    text-align: center;
    color: #a0a0a0;
    font-size: 14px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 300px;
    margin-top: 16px;
}

.no-obb-message p {
    margin-bottom: 8px;
}

.app-details-section {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    border-radius: 8px;
}

/* Ensure input fields and other elements are responsive */
input, button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

input::placeholder {
    color: rgba(224,224,224,0.6);
}

.material-icons {
    color: var(--text-color);
}