/* ===== SHARED THEME VARIABLES ===== */
:root {
    --bg-color: #1F1F1F;
    --card-bg: #333333;
    --text-main: #EAEAEA;
    --text-muted: #A69B95;
    --accent: #8ABFB0;
    --border: #333333;
}

[data-theme="light"] {
    --bg-color: #F9F8F4;
    --card-bg: #E6E2DD;
    --text-main: #1C1C1C;
    --text-muted: #4A3B32;
    --accent: #6a9679;
    --border: #E6E2DD;
}

/* Brand color override for main page compatibility */
:root {
    --brand-orange: #8ABFB0;
    --brand-blue: #8ABFB0;
}

[data-theme="light"] {
    --brand-orange: #6a9679;
    --brand-blue: #6a9679;
}

/* ===== SHARED BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== SHARED NAVIGATION BAR ===== */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

.main-nav a.active {
    color: var(--accent);
    font-weight: bold;
}

/* ===== SHARED THEME TOGGLE ===== */
.theme-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.2em;
    line-height: 1;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background-color: var(--accent);
    color: #F9F8F4;
    transform: translateY(-50%) scale(1.1);
}

.header-contact .theme-toggle {
    position: static;
    transform: none;
    font-size: 1.2em;
    line-height: 1;
}

/* ===== SHARED CARD STYLES ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
    text-decoration: none;
}

.card h2, .card h3 {
    margin-top: 0;
    color: var(--accent);
}

/* ===== SHARED BUTTON STYLES ===== */
.btn {
    display: inline-block;
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: #F9F8F4;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 1em;
    text-decoration: none;
    line-height: 1;
}

[data-theme="dark"] .btn {
    color: #1F1F1F;
}

.btn:hover {
    background-color: var(--accent);
    color: #F9F8F4;
    border-color: var(--accent);
    text-decoration: none;
    opacity: 0.9;
}
    border-color: var(--accent);
}

.btn.active {
    background-color: var(--accent);
    color: #F9F8F4;
    border-color: var(--accent);
}

[data-theme="dark"] .btn:hover {
    color: #1F1F1F;
}

[data-theme="dark"] .btn.active {
    color: #1F1F1F;
}

/* ===== SHARED HEADER STYLES ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-color);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--border);
    overflow: hidden;
    object-fit: cover;
    background: var(--accent);
    color: #F9F8F4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

[data-theme="dark"] .avatar {
    color: #1F1F1F;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    line-height: 1.3;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.social-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: opacity 0.3s ease;
    padding: 4px;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
}

[data-theme="dark"] .social-links a {
    color: var(--accent);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
}

nav a:hover {
    color: var(--accent);
}

nav .separator {
    color: var(--text-muted);
    user-select: none;
}

.header-contact .theme-toggle {
    position: static;
    transform: none;
    font-size: 1.2em;
}

/* ===== SHARED TAGS ===== */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.major-cert { background: #6a9679; color: #F9F8F4; }
.tag.minor-cert { background: #8ABFB0; color: #F9F8F4; }
.tag.course { background: #4A3B32; color: #F9F8F4; }
.tag.training { background: #E6E2DD; color: #1C1C1C; }
.tag.skill { background: #A69B95; color: #F9F8F4; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .theme-toggle {
        position: static;
        transform: none;
        margin-top: 15px;
    }
    
    .theme-toggle:hover {
        transform: scale(1.1);
    }
    
    body {
        padding: 10px;
    }
}
