/* General Styles */
.main-content {
    padding-top: 80px; 
    text-align: center;
}

/* Hero Section */
.hero {
    background: var(--hero-bg);
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 36px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero p {
    font-size: clamp(18px, 2.5vw, 20px);
    opacity: 0.8;
    max-width: 640px;
    margin: 0 auto;
}

/* Apps Section */
.apps-section {
    margin-bottom: 32px;
}

.apps-section h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 500;
    margin-bottom: 32px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 8px 24px; 
    grid-auto-rows: auto;
    align-items: start;
}

.app-card {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    padding: 16px 24px;
    margin: 0 12px;

    background: var(--app-card-bg);
    color: inherit;
    border-radius: 12px;
    box-shadow: var(--app-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    text-decoration: none;
    text-align: left;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--app-card-hover-shadow);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

.app-card-title {
    font-size: 24px;
    font-weight: 500;
    margin: 16px 0;
}

.app-card-description {
    font-size: 16px;
    opacity: 0.7;
    line-height: 1.5;
    margin-top: 0px;
    margin-bottom: 16px;
}

/* About Section */
.about-section {
    background: var(--about-section-bg);
    padding: 36px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 500;
    margin-bottom: 24px;
}

.about-section p {
    font-size: 18px;
    opacity: 0.8;
    line-height: 1.6;
    padding: 0 80px; 
}

/* App Detail Page */
.app_entity {
    margin: 80px auto 40px;
    padding-top: 20px;
    text-align: center;
    justify-content: center; 
    color: var(--app-entity-text-color);
}
.app_entity_icon {
    margin: 32px 0;
}
.app_entity_icon img {
    display: block;
    width: 96px;
    height: 96px;
    margin: 12px auto;
    box-shadow: var(--app-icon-shadow);
    border-radius: 14px;
}

.app_entity_name-box {
    display: inline-block;
    margin-bottom: 8px;
    position: relative;
}
.app_entity_name {
    display: inline-block;
    margin: 8px 12px;
    font-size: 36px;
    letter-spacing: 0.8px;
    text-align: center;
    line-height: clamp(40px, 2vw, 48px);
    font-weight: normal;
    color: var(--app-entity-name-text-color);
}
.app_entity_comment {
    position: relative;
    height: 32px;
    margin: auto 12px;
    font-weight: normal;
    font-size: clamp(14px, 2vw, 18px);
    opacity: 0.6;
    color: var(--app-entity-comment-text-color);
    white-space: nowrap;
}

.app_entity_description-container {
    margin: 0 auto; 
    padding: 10px; 
}
.app_entity_description {
    margin: 12px;
    text-align: justify; 
    line-height: 1.4;
    color: var(--app-entity-description-text-color);
}

.app_entity_description-container h3 {
    text-align: left;
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 1.2em;
    color: var(--app-entity-h3-text-color);
}

.app_entity_description-container ul {
    text-align: left;
    padding-left: 20px;
    margin: 0;
    line-height: 1.6;
    color: var(--app-entity-ul-text-color);
}

.app_download {
    display: block;
    padding: 12px;
    border-radius: 4px;
}
.screenshot-swiper-container {
    display: flex; 

    margin-top: 16px; 
    margin-left: auto;  
    margin-right: auto; 

    justify-content: space-around; 
    align-items: center; 
}
.screenshot-swiper-container img {
    width: 28%; 
    height: auto; 
    margin-left: 8px;  
    margin-right: 8px; 
}

@media (max-width: 800px) {
    .apps-grid {
        gap: 16px; 
    }
    .about-section p {
        padding: 0 10px;
    }

    .app_entity {
        margin-top: 40px; 
        box-shadow: none;
    }
    
    .app_entity_icon {
        margin: 40px 0 24px;
    }

    .screenshot-swiper-container {
        flex-direction: column;
        gap: 16px;
    }

    .screenshot-swiper-container img {
        width: 85%;
        max-width: 400px;
        margin-left: 0;
        margin-right: 0;
    }
}