# assets/css/checkpoints.css

/* Map Checkpoints Page Styles */

.checkpoint-subtitle {
    color: #666;
    font-size: 1.05em;
    margin-top: 8px;
}

.checkpoint-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid #667eea;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.checkpoint-info p {
    margin: 8px 0;
    line-height: 1.6;
}

.checkpoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .checkpoint-grid {
        grid-template-columns: 1fr;
    }
}

.checkpoint-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.checkpoint-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.checkpoint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #ddd;
}

.checkpoint-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #1e3c72;
}

.checkpoint-badge {
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.checkpoint-badge-sprint {
    background: #51cf66;
}

.checkpoint-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.checkpoint-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s;
}

.checkpoint-image:hover {
    transform: scale(1.05);
}

.checkpoint-error-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 1.2em;
    text-align: center;
}

.checkpoint-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.checkpoint-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s;
}

.checkpoint-link:hover {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,60,114,0.3);
}

.checkpoint-link-secondary {
    background: linear-gradient(135deg, #51cf66, #37b24d);
}

.checkpoint-link-secondary:hover {
    background: linear-gradient(135deg, #37b24d, #51cf66);
}

.checkpoint-error {
    text-align: center;
    padding: 60px 20px;
}

.checkpoint-error h1 {
    color: #1e3c72;
    margin-bottom: 16px;
}

.checkpoint-error p {
    color: #666;
    font-size: 1.1em;
    margin: 12px 0;
}

/* Lightbox effect when clicking images */
.checkpoint-image-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
}

.checkpoint-image-fullscreen.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkpoint-image-fullscreen img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Loading state */
.checkpoint-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.checkpoint-loading:after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: checkpoint-spin 0.8s linear infinite;
    margin-left: 12px;
}

@keyframes checkpoint-spin {
    to { transform: rotate(360deg); }
}
