/* Shared styles and theme colors */

/* Colors */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f0f7ff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-color: #2563eb;
    --accent-light: #dbeafe;
    --accent-dark: #1e40af;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-accent: #1e3a5f;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --accent-color: #60a5fa;
    --accent-light: #1e3a5f;
    --accent-dark: #3b82f6;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style-position: outside;
}

/* Theme toggle - top right of screen */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: inline;
}

/* PDF Button - inside container top right */
.pdf-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    background: var(--accent-color);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
    border: none;
    cursor: pointer;
}

.pdf-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
    background: var(--accent-dark);
}

/* DOCX Button - below PDF button */
.docx-button {
    position: absolute;
    top: 4rem;
    right: 1rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    background: #16a34a;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
    border: none;
    cursor: pointer;
}

.docx-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
    background: #15803d;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .theme-toggle {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .pdf-button {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .docx-button {
        top: 3.5rem;
        right: 0.5rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Focus styles */
button:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

::selection {
    background: var(--accent-color);
    color: white;
}

/* Smooth transitions */
.resume-container,
.sidebar,
.card,
.section,
.project-item,
.experience-item,
.activity-item {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
