/* ATS CV Maker — Plugin Styles */

/* Mobile nav drawer */
.mobile-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-md);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.mobile-nav.open {
    transform: translateY(0);
}
.mobile-nav__inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav__inner a {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-body);
    display: block;
}
.mobile-nav__inner a:hover {
    background: var(--bg-light);
    color: var(--brand-primary);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Admin CSS */
.atscvm-admin { max-width: 1200px; }
.atscvm-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px !important;
    margin-bottom: 24px !important;
}
.atscvm-logo-mark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
}
.atscvm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.atscvm-stat-card {
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.atscvm-stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.atscvm-stat-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.atscvm-stat-label { font-size: 12px; color: #888; margin-top: 3px; }
.atscvm-stat-sub   { font-size: 11px; color: #aaa; margin-top: 3px; }
.atscvm-stat-link  { font-size: 11px; color: #667eea; text-decoration: none; margin-top: 3px; display: block; }
.atscvm-admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.atscvm-admin-card {
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    padding: 24px;
}
.atscvm-admin-card-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.atscvm-admin-card-header h3 { margin: 0; font-size: 15px; }
.atscvm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.atscvm-table th {
    text-align: left; padding: 8px 12px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: #888; border-bottom: 1px solid #e8eaf0;
}
.atscvm-table td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; }
.atscvm-table tr:hover td { background: #fafafa; }
.atscvm-badge {
    background: rgba(102,126,234,0.1);
    color: #667eea; font-size: 11px;
    font-weight: 700; padding: 2px 8px;
    border-radius: 4px;
}
.atscvm-alert {
    padding: 12px 16px; border-radius: 8px;
    font-size: 13px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.atscvm-alert--warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.atscvm-alert--success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.atscvm-alert--info    { background: #cfe2ff; color: #084298; border: 1px solid #b6d4fe; }
.atscvm-ticket-msg {
    padding: 16px; border-radius: 10px;
    margin-bottom: 12px;
}
.atscvm-ticket-msg--user  { background: #f7f8fc; }
.atscvm-ticket-msg--admin { background: linear-gradient(135deg,rgba(102,126,234,0.06),rgba(118,75,162,0.06)); border: 1px solid rgba(102,126,234,0.12); }
.atscvm-ticket-meta {
    display: flex; gap: 10px;
    align-items: center; margin-bottom: 8px;
    font-size: 12px; color: #888;
}
.atscvm-ticket-meta strong { color: #333; font-size: 13px; }
/* Bar chart */
.atscvm-bar-chart {
    display: flex; gap: 8px; align-items: flex-end;
    height: 120px; padding-top: 10px;
}
.atscvm-bar-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 4px; height: 100%;
}
.atscvm-bar-wrap {
    flex: 1; width: 100%; display: flex;
    align-items: flex-end; border-radius: 4px;
    overflow: hidden; background: #f0f0f0;
    min-height: 4px;
}
.atscvm-bar-fill {
    width: 100%; min-height: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s ease;
}
.atscvm-bar-label { font-size: 10px; color: #888; }
.atscvm-bar-count { font-size: 11px; font-weight: 700; color: #667eea; }

@media (max-width: 900px) {
    .atscvm-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .atscvm-admin-grid { grid-template-columns: 1fr; }
}
