:root {
    --primary-color: #007aff;
    --background-color: #121212;
    --card-bg-color: #1c1c1e;
    --text-color: #ffffff;
    --secondary-text: #8e8e93;
    --border-color: #38383a;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(to bottom right, #000000, #1a1a1a);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #007aff, #5ac8fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

.intro-section {
	margin: 2rem auto 2.5rem;
	max-width: 800px;
	color: var(--secondary-text);
}

.intro-section h2 {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
	color: var(--text-color);
}

.intro-section p {
	margin-bottom: 0.75rem;
}

.intro-list {
	list-style: disc;
	margin-left: 1.5rem;
}

.intro-list li {
	margin-bottom: 0.35rem;
}

.search-container {
    display: flex;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
}

#search-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s;
}

#search-button:hover {
    background-color: #0066d6;
}

.sorting {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

#sort-select {
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.app-description {
	margin-top: 0.35rem;
	font-size: 0.9rem;
	color: var(--secondary-text);
}

.faq-section {
	max-width: 900px;
	margin: 0 auto 3rem;
	padding: 2rem 1rem;
	border-top: 1px solid var(--border-color);
}

.faq-section h2 {
	font-size: 1.6rem;
	margin-bottom: 1.25rem;
}

.faq-item + .faq-item {
	margin-top: 1rem;
}

.faq-item h3 {
	font-size: 1.1rem;
	margin-bottom: 0.35rem;
}

.faq-item p {
	color: var(--secondary-text);
}

.productivity-section {
	max-width: 900px;
	margin: 0 auto 2rem;
	padding: 2rem 1rem 0;
	border-top: 1px solid var(--border-color);
}

.productivity-section h2 {
	font-size: 1.6rem;
	margin-bottom: 0.75rem;
}

.productivity-section p {
	color: var(--secondary-text);
	margin-bottom: 0.75rem;
}

.productivity-list {
	list-style: disc;
	margin-left: 1.5rem;
}

.productivity-list-item + .productivity-list-item {
	margin-top: 0.35rem;
}

.app-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.app-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin: -32px auto 0;
    display: block;
    border: 4px solid var(--card-bg-color);
    background-color: var(--card-bg-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0;
    text-align: center;
}

.app-developer {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.app-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    gap: 0.25rem;
}

.stars {
    color: #ffcc00;
    font-size: 0.9rem;
}

.rating-count {
    color: var(--secondary-text);
    font-size: 0.8rem;
}

.app-price {
    margin: 0.5rem 0;
    font-weight: 600;
    text-align: center;
}

.free {
    color: #34c759;
}

.app-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
    justify-content: center;
}

.category-tag {
    background-color: rgba(0, 122, 255, 0.2);
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.app-link {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0.75rem;
    text-decoration: none;
    border-radius: 8px;
    margin-top: auto;
    font-weight: 500;
    transition: background-color 0.2s;
}

.app-link:hover {
    background-color: #0066d6;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

#prev-page, #next-page {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, opacity 0.2s;
}

#prev-page:hover, #next-page:hover {
    background-color: #0066d6;
}

#prev-page:disabled, #next-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    color: var(--secondary-text);
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading {
    text-align: center;
    margin: 3rem 0;
}

#loading p {
    margin-top: 1rem;
    color: var(--secondary-text);
}

#error-message {
    text-align: center;
    margin: 3rem 0;
    color: #ff3b30;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.75rem;
    }
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
    }
    
    #search-input {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    #search-button {
        border-radius: 8px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
} 