/* PKF Brand Colors */
:root {
    --pkf-blue: #1e4d8c;
    --pkf-navy: #1e3a6e;
    --pkf-cyan: #00aeef;
    --pkf-teal: #00a99d;
    --pkf-green: #00a651;
    --pkf-orange: #f7941d;

    --bg-page: #eaeff4;
    --bg-card: #ffffff;
    --text-dark: #0f1a2a;
    --text-mid: #3a4a5a;
    --text-light: #5a6a7a;
    --border: #d8dfe6;
    --border-hover: #b8c4d0;
}

/* Fonts */
@font-face {
    font-family: 'PKF Global Sans Pro';
    src: url('assets/fonts/PKFGlobalSansPro.otf') format('opentype');
    font-weight: normal;
}
@font-face {
    font-family: 'PKF Global Sans Pro';
    src: url('assets/fonts/PKFGlobalSansPro-Bold.otf') format('opentype');
    font-weight: bold;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'PKF Global Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #ffffff;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo { height: 36px; }

.header-text h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pkf-navy);
}

.header-text p {
    font-size: 0.75rem;
    color: var(--text-mid);
}

/* Main */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Filters */
.filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-right: 0.25rem;
}

.filter-btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-mid);
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.15s;
}

.filter-btn:hover {
    border-color: var(--pkf-cyan);
    color: var(--pkf-cyan);
}

.filter-btn.active {
    background: var(--pkf-cyan);
    border-color: var(--pkf-cyan);
    color: #fff;
}

/* Carousel Container */
.carousel-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    min-height: 0;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-mid);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.carousel-btn:hover {
    border-color: var(--pkf-cyan);
    color: var(--pkf-cyan);
    background: #f0f8ff;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* Apps Grid - Horizontal Scroll */
.apps-grid {
    flex: 1;
    display: flex;
    gap: 1rem;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* Card */
.app-card-wrapper {
    flex: 0 0 280px;
    position: relative;
}

.app-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.app-card:hover {
    border-color: var(--pkf-cyan);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.app-card-header {
    padding: 1rem 1rem 0.6rem;
    display: flex;
    gap: 0.75rem;
}

.app-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f5fa 0%, #e4ecf4 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.app-title-section { flex: 1; min-width: 0; }

.app-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pkf-navy);
    margin-bottom: 0.2rem;
}

.app-description {
    font-size: 0.72rem;
    color: var(--text-mid);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tech badges */
.app-tech {
    padding: 0.25rem 1rem 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tech-badge {
    background: #f0f5fa;
    color: var(--text-mid);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* Status */
.status-section {
    padding: 0.6rem 1rem;
    background: #f8fafb;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: 38px;
}

.status-bar {
    flex: 1;
    height: 5px;
    background: #e4e9ee;
    border-radius: 3px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    border-radius: 3px;
}

.status-pct {
    font-size: 0.7rem;
    font-weight: 700;
    width: 32px;
    text-align: right;
}

/* Status colors */
.status-ready .status-label { color: var(--pkf-teal); }
.status-ready .status-fill { background: var(--pkf-teal); }
.status-ready .status-pct { color: var(--pkf-teal); }

.status-beta .status-label { color: var(--pkf-cyan); }
.status-beta .status-fill { background: var(--pkf-cyan); }
.status-beta .status-pct { color: var(--pkf-cyan); }

.status-alpha .status-label { color: var(--pkf-orange); }
.status-alpha .status-fill { background: var(--pkf-orange); }
.status-alpha .status-pct { color: var(--pkf-orange); }

.status-dev .status-label { color: var(--text-light); }
.status-dev .status-fill { background: #a0aab4; }
.status-dev .status-pct { color: var(--text-light); }

/* Actions */
.app-actions {
    padding: 0.6rem 1rem;
    margin-top: auto;
}

.btn {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.15s;
    border: none;
}

.btn svg { width: 12px; height: 12px; }

.btn-primary {
    background: var(--pkf-cyan);
    color: #fff;
}

.btn-primary:hover {
    background: #009dd5;
}

.btn-secondary {
    background: #f0f5fa;
    color: var(--text-mid);
}

.btn-secondary:hover {
    background: #e4ecf4;
    color: var(--pkf-cyan);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badge */
.app-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-deployed {
    background: #e0f5ed;
    color: #0d7a40;
}

.badge-development {
    background: #fff4e6;
    color: #c76a00;
}

.badge-mobile {
    background: #f0e6fa;
    color: #7c3aed;
}

/* Pagination dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-shrink: 0;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot:hover {
    background: var(--border-hover);
}

.carousel-dot.active {
    background: var(--pkf-cyan);
    width: 24px;
    border-radius: 4px;
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 0.5rem 2rem;
    text-align: center;
    flex-shrink: 0;
}

.footer p {
    font-size: 0.7rem;
    color: var(--text-mid);
    display: inline;
}

.footer-tagline {
    color: var(--pkf-navy);
    font-weight: 600;
    margin-left: 0.5rem;
}

/* No apps message */
.no-apps {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--text-mid);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; gap: 0.5rem; }
    .main-content { padding: 0.75rem 1rem; }
    .filters { flex-direction: column; gap: 0.75rem; }
    .carousel-btn { display: none; }
    .apps-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .app-card-wrapper { flex: 0 0 260px; }
}

/* Animation */
.app-card {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-card-wrapper:nth-child(1) .app-card { animation-delay: 0.03s; }
.app-card-wrapper:nth-child(2) .app-card { animation-delay: 0.06s; }
.app-card-wrapper:nth-child(3) .app-card { animation-delay: 0.09s; }
.app-card-wrapper:nth-child(4) .app-card { animation-delay: 0.12s; }
.app-card-wrapper:nth-child(5) .app-card { animation-delay: 0.15s; }
.app-card-wrapper:nth-child(6) .app-card { animation-delay: 0.18s; }
.app-card-wrapper:nth-child(7) .app-card { animation-delay: 0.21s; }
.app-card-wrapper:nth-child(8) .app-card { animation-delay: 0.24s; }
.app-card-wrapper:nth-child(9) .app-card { animation-delay: 0.27s; }
.app-card-wrapper:nth-child(10) .app-card { animation-delay: 0.30s; }
