/* Styles based on provided image */
* {
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .tower {
        display: none;
    }
}

@media (min-width: 1400px) {
    body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .layout {
        gap: 12px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 40px 20px;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.layout {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    max-width: 1320px;
    margin: 0 auto;
}

.tower {
    width: 170px;
    flex: 0 0 170px;
    position: sticky;
    top: 20px;
}

.container {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 900px;
}

.layout > .container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.ad-slot {
    background: #ffffff;
    border: 1px dashed #d9dee7;
    border-radius: 12px;
    padding: 14px;
    margin: 0 0 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.ad-slot--tower {
    margin: 0;
}

.ad-slot--tower .ad-box {
    height: 600px;
}

.ad-slot[data-ad-slot="home-bottom"] {
    margin-top: 28px;
}

.ad-label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a93a3;
    margin-bottom: 8px;
}

.ad-box {
    height: 90px;
    border-radius: 10px;
    background: #f6f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.95rem;
}

h1 {
    color: #3f51b5;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 600;
}

/* Info Banner */
.info-banner {
    background-color: #fffde7;
    border: 1px solid #ffe082;
    color: #f57f17;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    font-size: 0.95em;
}

.info-banner::before {
    content: 'ℹ️';
    margin-right: 10px;
    font-size: 1.2em;
}

 .toolbar {
     margin: 0 0 24px;
 }

 .search-input {
     width: 100%;
     height: 44px;
     padding: 0 14px;
     border-radius: 10px;
     border: 1px solid #d9dee7;
     background: #ffffff;
     font-size: 0.95rem;
     outline: none;
 }

 .search-input:focus {
     border-color: rgba(63, 81, 181, 0.55);
     box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15);
}

 .page-card {
     background: #ffffff;
     border-radius: 12px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
     padding: 20px;
     margin: 0 0 20px;
 }

 .page-card-header {
     display: flex;
     align-items: flex-start;
     gap: 14px;
 }

 .page-card-meta {
     min-width: 0;
 }

 .page-card-title {
     font-size: 1.25rem;
     font-weight: 600;
     color: #3f51b5;
     margin: 2px 0 6px;
 }

 .page-card-subtitle {
     color: #666;
     font-size: 0.9rem;
     font-weight: 400;
 }

 .page-card-actions {
     margin-top: 14px;
 }

/* Navigation */
.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #3f51b5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link::before {
    content: '←';
    margin-right: 8px;
}

/* App List Styles */
.app-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.app-item {
    background: white;
    padding: 22px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    border-radius: 14px;
    object-fit: cover;
    flex: 0 0 auto;
}

 .app-meta {
     min-width: 0;
 }

.app-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3f51b5;
    margin: 2px 0 6px;
    text-decoration: none;
    display: inline-block;
}

 .app-title:hover {
     text-decoration: underline;
 }

.app-version {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-weight: 400;
}

/* App Detail Pages */
.download-section {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.download-section h2 {
    color: #3f51b5;
    font-size: 1.75rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.download-section p {
    color: #666;
    margin-bottom: 24px;
    font-size: 1rem;
}

.download-btn {
    background: #3f51b5;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    font-weight: 500;
}

.download-btn:hover {
    background: #303f9f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(63, 81, 181, 0.3);
}

.app-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.app-info p {
    margin: 10px 0;
    color: #555;
}

.app-info a {
    color: #3f51b5;
}

.site-footer {
    margin-top: 26px;
    padding-top: 14px;
    border-top: 1px solid #e6e9f0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: center;
}

.site-footer a {
    color: #3f51b5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

.info-item {
    margin: 16px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #333;
}

.app-info h3 {
    color: #3f51b5;
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: 600;
}

.app-info ul {
    margin: 0;
    padding-left: 20px;
}

.app-info li {
    margin: 12px 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }

    .layout {
        display: block;
    }

    .tower {
        display: none;
    }
    
    h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .app-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .app-item {
        padding: 20px;
    }
    
    .download-section {
        padding: 30px 20px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
