/* ===============================
   OkPunch Gallery - Styles
   =============================== */

/* Hero Section */
.gallery-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.gallery-hero .hero-badge {
    font-size: 1rem;
}

.gallery-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gallery-hero .hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Active nav link */
.nav-menu a.active {
    color: var(--okpunch-gold);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0 100px;
}

.gallery-category {
    margin-bottom: 100px;
}

.category-header {
    text-align: center;
    margin-bottom: 48px;
}

.category-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.gallery-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid.mobile-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.gallery-item {
    text-align: center;
}

.gallery-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.gallery-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===============================
   Mockup Frame
   =============================== */
.mockup-frame {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.mockup-frame:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.mockup-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:last-child { background: #28c840; }

.mockup-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.mockup-content {
    padding: 20px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* ===============================
   Dashboard Mock
   =============================== */
.dashboard-mock {
    flex-direction: row;
    gap: 16px;
    padding: 0;
}

.mock-sidebar {
    width: 60px;
    background: var(--okpunch-black);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mock-logo {
    width: 32px;
    height: 32px;
    background: var(--okpunch-gold);
    border-radius: 8px;
}

.mock-nav-item {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.mock-nav-item.active {
    background: var(--okpunch-gold);
}

.mock-main {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-stats-row {
    display: flex;
    gap: 12px;
}

.mock-stat-card {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.mock-stat-card .stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--okpunch-gold);
}

.mock-stat-card .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.mock-employee-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-employee {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.mock-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.mock-avatar.green { background: #22c55e; }
.mock-avatar.orange { background: #f59e0b; }
.mock-avatar.blue { background: #3b82f6; }

.mock-emp-info {
    flex: 1;
    text-align: left;
}

.mock-emp-info span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
}

.mock-emp-info small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.mock-badge {
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.mock-badge.green { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.mock-badge.orange { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.mock-badge.gray { background: var(--bg-tertiary); color: var(--text-muted); }

/* ===============================
   Stats Mock
   =============================== */
.stats-mock {
    gap: 20px;
}

.mock-chart-container {
    flex: 1;
}

.mock-chart-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.mock-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    gap: 8px;
}

.mock-bar {
    flex: 1;
    background: var(--accent-gradient);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    max-width: 40px;
}

.mock-bar span {
    font-size: 0.6rem;
    color: var(--okpunch-black);
    font-weight: 600;
}

.mock-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mock-mini-stat {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.mock-mini-stat .mini-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--okpunch-gold);
}

.mock-mini-stat .mini-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ===============================
   Punch Mock
   =============================== */
.punch-mock {
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.punch-clock {
    margin-bottom: 8px;
}

.punch-time {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--okpunch-gold);
}

.punch-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.punch-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.punch-user-avatar {
    width: 48px;
    height: 48px;
    background: var(--okpunch-gold);
    color: var(--okpunch-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.punch-user-name {
    font-weight: 600;
}

.punch-user-dept {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.punch-buttons {
    display: flex;
    gap: 12px;
}

.punch-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.punch-btn.entry {
    background: #22c55e;
    color: white;
}

.punch-btn.exit {
    background: #ef4444;
    color: white;
}

.punch-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green { background: #22c55e; }

/* ===============================
   Keypad Mock
   =============================== */
.keypad-mock {
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.keypad-display {
    background: var(--bg-tertiary);
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 200px;
}

.keypad-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.keypad-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 8px;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 200px;
}

.keypad-grid button {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.keypad-grid button:hover {
    background: var(--okpunch-gold);
    color: var(--okpunch-black);
    border-color: var(--okpunch-gold);
}

.keypad-grid button.clear {
    color: #ef4444;
}

.keypad-grid button.enter {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

/* ===============================
   Kiosk Mock
   =============================== */
.kiosk-mock {
    background: var(--okpunch-black);
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    border-radius: 0 0 12px 12px;
    margin: -20px;
    padding: 32px 20px;
}

.kiosk-logo {
    width: 48px;
    height: 48px;
    background: var(--okpunch-gold);
    border-radius: 12px;
}

.kiosk-time {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
}

.kiosk-message {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.kiosk-input .kiosk-field {
    background: rgba(255,255,255,0.1);
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1.5rem;
    letter-spacing: 12px;
    color: white;
}

.kiosk-actions {
    display: flex;
    gap: 16px;
}

.kiosk-btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.kiosk-btn.green { background: #22c55e; color: white; }
.kiosk-btn.red { background: #ef4444; color: white; }

/* ===============================
   Timesheet Mock
   =============================== */
.timesheet-mock {
    gap: 16px;
}

.ts-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.ts-header span:first-child {
    font-weight: 600;
}

.ts-header span:last-child {
    color: var(--text-muted);
}

.ts-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ts-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: 10px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.ts-row.header {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ts-row:not(.header):not(.total):hover {
    background: var(--bg-tertiary);
}

.ts-row.total {
    background: var(--okpunch-gold);
    color: var(--okpunch-black);
    font-weight: 600;
    margin-top: auto;
}

/* ===============================
   Approval Mock
   =============================== */
.approval-mock {
    gap: 12px;
}

.approval-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border-left: 4px solid transparent;
}

.approval-card.pending {
    border-left-color: var(--okpunch-gold);
}

.approval-card.approved {
    border-left-color: #22c55e;
}

.approval-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.approval-avatar {
    width: 36px;
    height: 36px;
    background: var(--okpunch-gold);
    color: var(--okpunch-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.approval-info strong {
    display: block;
    font-size: 0.85rem;
}

.approval-info small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.approval-actions {
    display: flex;
    gap: 8px;
}

.approval-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.approval-actions .approve {
    background: #22c55e;
    color: white;
}

.approval-actions .reject {
    background: #ef4444;
    color: white;
}

.approval-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.approval-status.green {
    color: #22c55e;
}

/* ===============================
   Employees Mock
   =============================== */
.employees-mock {
    gap: 16px;
}

.emp-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    padding: 10px 14px;
    border-radius: 10px;
}

.emp-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: var(--text-primary);
    width: 100%;
}

.emp-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emp-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.emp-photo {
    width: 36px;
    height: 36px;
    background: var(--okpunch-gold);
    color: var(--okpunch-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.emp-details {
    flex: 1;
    text-align: left;
}

.emp-details strong {
    display: block;
    font-size: 0.85rem;
}

.emp-details small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.emp-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

.emp-status.active {
    background: #22c55e;
}

/* ===============================
   Department Mock
   =============================== */
.dept-mock {
    padding: 24px;
}

.dept-tree {
    font-size: 0.85rem;
}

.dept-node {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 8px;
}

.dept-node.root {
    background: var(--okpunch-gold);
    color: var(--okpunch-black);
    font-weight: 600;
}

.dept-branch {
    margin-left: 24px;
    border-left: 2px solid var(--border-color);
    padding-left: 16px;
    margin-bottom: 12px;
}

.dept-sub {
    margin-left: 24px;
    margin-top: 8px;
}

.dept-leaf {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dept-leaf span {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* ===============================
   Projects Mock
   =============================== */
.projects-mock {
    gap: 12px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.project-color {
    width: 8px;
    height: 40px;
    border-radius: 4px;
}

.project-info {
    flex: 1;
    text-align: left;
}

.project-info strong {
    display: block;
    font-size: 0.9rem;
}

.project-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 50px;
    font-weight: 600;
}

/* ===============================
   Phone Frame (Mobile)
   =============================== */
.phone-frame {
    width: 220px;
    height: 440px;
    background: var(--okpunch-black);
    border-radius: 36px;
    padding: 12px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.phone-frame:hover {
    transform: translateY(-8px);
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: var(--okpunch-black);
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    background: var(--card-bg);
    border-radius: 28px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-home-bar {
    width: 100px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-header {
    background: var(--bg-tertiary);
    padding: 32px 16px 8px;
    text-align: center;
}

.mobile-time {
    font-size: 0.8rem;
    font-weight: 600;
}

.mobile-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

/* Mobile Home */
.mobile-content.home {
    gap: 16px;
}

.mobile-greeting {
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-status-card {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 16px;
    text-align: center;
}

.mobile-status-card .status-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.mobile-status-card .status-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 4px 0;
}

.mobile-status-card .status-value.green {
    color: #22c55e;
}

.mobile-status-card .status-since {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mobile-quick-actions {
    display: flex;
    gap: 8px;
}

.mobile-action {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

/* Mobile Punch */
.mobile-content.punch {
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.mobile-clock {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.mobile-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mobile-punch-btn {
    width: 100px;
    height: 100px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 16px 0;
}

.mobile-punch-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mobile History */
.mobile-content.history {
    gap: 12px;
}

.mobile-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.mobile-history-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    font-size: 0.8rem;
}

.history-item.today {
    background: var(--okpunch-gold);
    color: var(--okpunch-black);
    font-weight: 600;
}

.mobile-total {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 1024px) {
    .gallery-grid.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 120px 0 60px;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }
    
    .gallery-grid,
    .gallery-grid.three-cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .gallery-grid.mobile-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .phone-frame {
        width: 180px;
        height: 360px;
        border-radius: 28px;
    }
    
    .phone-notch {
        width: 60px;
        height: 20px;
    }
    
    .phone-screen {
        border-radius: 22px;
    }
}

@media (max-width: 640px) {
    .gallery-grid.mobile-grid {
        grid-template-columns: 1fr;
        max-width: 250px;
    }
}
