/*
Theme Name:  TAG Internal Professional
Theme URI:   https://theathletegroup.com
Description: Executive-grade internal operations portal for The Athlete Group.
Author:      The Athlete Group
Version:     3.0.0
License:     Private
Text Domain: tag-internal
*/

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
    --navy:          #0A192F;
    --navy-mid:      #112240;
    --navy-light:    #1d3461;
    --gold:          #D4AF37;
    --gold-light:    #f0d875;
    --slate:         #4A5568;
    --slate-light:   #718096;
    --charcoal:      #2D3748;
    --bg:            #F7F8FA;
    --surface:       #FFFFFF;
    --border:        #E2E8F0;
    --border-dark:   #CBD5E0;
    --text:          #1A202C;
    --text-muted:    #718096;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow:        0 2px 8px rgba(0,0,0,.10);
    --shadow-md:     0 4px 16px rgba(0,0,0,.12);
    --radius:        6px;
    --radius-lg:     10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4 {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--navy);
    line-height: 1.25;
}

a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }

/* ── Site header ────────────────────────────────────────────────────────── */
.tag-site-header {
    background: var(--navy);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.tag-site-header-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.tag-site-logo img {
    height: 36px;
    width: auto;
    display: block;
    /* White-tint the logo so it reads on navy */
    filter: brightness(0) invert(1);
}

/* Fallback text logo if image fails */
.tag-site-logo-text {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
}

.tag-site-logo-text span {
    color: var(--gold);
}

.tag-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tag-header-user {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

.tag-header-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,.2);
}

.tag-header-signout {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .15s;
}

.tag-header-signout:hover { color: var(--gold); }

/* ── Content & layout ───────────────────────────────────────────────────── */
.tag-page-wrap {
    max-width: 1280px;
    margin: 48px auto;
    padding: 0 32px;
}

.tag-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 36px 40px;
}

.tag-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.tag-btn {
    display: inline-block;
    padding: 9px 20px;
    background: var(--navy);
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .15s;
}

.tag-btn:hover { background: var(--navy-light); color: #fff !important; }

.tag-btn--gold {
    background: var(--gold);
    color: var(--navy) !important;
}

.tag-btn--gold:hover { background: var(--gold-light); color: var(--navy) !important; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.tag-site-footer {
    background: var(--navy);
    padding: 28px 0;
    margin-top: 80px;
}

.tag-site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-footer-brand {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
}

.tag-footer-legal {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.3);
}

/* ── /security/ page — three-card overview ─────────────────────────────── */
.tag-security-main {
    min-height: calc(100vh - 64px);
    padding: 48px 24px 64px;
    background: var(--bg);
}

.tag-security-wrap {
    max-width: 1080px;
    margin: 0 auto;
}

.tag-security-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.tag-security-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.tag-security-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.tag-security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 880px) {
    .tag-security-grid { grid-template-columns: 1fr; }
}

.tag-security-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s;
}

.tag-security-card:hover {
    box-shadow: var(--shadow);
}

.tag-security-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.tag-security-card-head h2 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
    margin: 0;
    text-transform: uppercase;
}

.tag-security-card-head svg {
    color: var(--gold);
    flex-shrink: 0;
}

.tag-security-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.tag-security-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0;
}

.tag-security-stat dt {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.tag-security-stat dd {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    text-align: right;
    word-break: break-word;
    max-width: 60%;
}

.tag-security-user {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tag-security-avatar { flex-shrink: 0; }

.tag-security-avatar img,
.tag-security-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.tag-security-user .tag-security-stats {
    flex: 1;
    min-width: 0;
}

/* Operational status pill (green dot) */
.tag-security-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.10);
    color: #047857;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
}

.tag-security-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}

.tag-security-monitoring {
    color: #047857 !important;
    position: relative;
}

.tag-security-monitoring::before {
    content: '●';
    color: #10b981;
    margin-right: 4px;
    animation: tag-security-pulse 2s ease-in-out infinite;
}

@keyframes tag-security-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
