/* Apps page specific styles */

.apps-page-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    background-color: var(--bg-tertiary);
}

.app-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.app-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 700;
    font-size: 24px;
}

.app-container h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.app-container p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.coming-soon {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 20px 0;
}

.screen-mockup {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgb(0 0 0 / 20%);
    border: 10px solid var(--text-primary);
}

.app-ui {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.app-header {
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--text-inverse);
    font-weight: 600;
    text-align: center;
}

.app-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.workout-item,
.hole-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px var(--card-shadow);
}

.workout-name,
.hole-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.workout-info,
.hole-par {
    font-size: 14px;
    color: var(--text-secondary);
}

.hole-score {
    font-size: 18px;
    font-weight: 700;
    margin: 5px 0;
}

.course-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.hole-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.score-total {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px var(--card-shadow);
}

.score-label {
    font-weight: 600;
}

.score-value {
    font-size: 18px;
    font-weight: 700;
}

.app-container .btn {
    margin-top: 20px;
    border-radius: 50px;
    border: none;
}

@media (width <= 768px) {
    .app-container {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: var(--bg-tertiary);
        z-index: 1000;
    }
    
    .screen-mockup {
        max-width: 100%;
        height: auto;
        aspect-ratio: 9/16;
        margin: 20px auto;
        border-width: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .app-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
        font-size: 20px;
    }
    
    h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .btn {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
    }
}

.workout-item.active,
.hole-item.active {
    background-color: rgb(0 0 0 / 5%);
    transform: scale(0.98);
    transition: all 0.2s ease;
}

.swipe-left {
    animation: swipe-left 0.3s ease-out;
}

.swipe-right {
    animation: swipe-right 0.3s ease-out;
}

@keyframes swipe-left {
    0% { transform: translateX(0); }
    50% { transform: translateX(-30px); }
    100% { transform: translateX(0); }
}

@keyframes swipe-right {
    0% { transform: translateX(0); }
    50% { transform: translateX(30px); }
    100% { transform: translateX(0); }
}

.install-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: var(--text-primary);
    color: var(--text-inverse);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
    cursor: pointer;
    display: none;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}