/* Publications Page Styles - Academic Career Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800&display=swap');

/* CSS Custom Properties - Centralized theme variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #161616;
    --border-primary: #2a2a2a;
    --border-secondary: #333333;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --mac-titlebar-height: 28px;
    --mac-button-size: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #4a9eff;
    --text-color: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
}

/* Base Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1e1e1e;
    padding: 20px;
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.main-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    position: sticky;
    top: var(--mac-titlebar-height);
    z-index: 1000;
    box-shadow: var(--shadow-light);
    height: 72px;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
    gap: 2rem;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-left {
    justify-content: flex-end;
}

.nav-right {
    justify-content: flex-start;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.logo-link:hover .logo {
    transform: scale(1.1);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--accent-color), #64b5f6);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.container {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: transparent;
    border-radius: var(--radius-md);
    margin-top: 0;
    margin-bottom: 2rem;
    box-shadow: none;
}

/* Mac Window Container */
.mac-window {
    width: 100%;
    max-width: 1400px;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: visible;
    position: relative;
    margin: 0 auto;
}

/* Mac Titlebar */
.mac-titlebar {
    height: var(--mac-titlebar-height);
    background: linear-gradient(180deg, #3c3c3c 0%, #2a2a2a 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1001;
    -webkit-user-select: none;
    user-select: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
}

/* Mac Buttons Container */
.mac-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Mac Action Buttons */
.mac-button {
    width: var(--mac-button-size);
    height: var(--mac-button-size);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
}

.mac-button.close {
    background: linear-gradient(135deg, #ff5f57 0%, #ff4444 100%);
}

.mac-button.minimize {
    background: linear-gradient(135deg, #ffbd2e 0%, #ffaa00 100%);
}

.mac-button.maximize {
    background: linear-gradient(135deg, #28ca42 0%, #20a034 100%);
}

/* Mac Button Hover Effects */
.mac-button:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mac-button.close:hover::after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8b0000;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.mac-button.minimize:hover::after {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8b4500;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.mac-button.maximize:hover::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f5132;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

/* Mac Title */
.mac-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 200px);
}

/* Mac Content Area */
.mac-content {
    background: #2a2a2a;
    min-height: calc(100vh - 80px);
    position: relative;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.5rem 0;
    margin: 0 0 2rem 0;
    color: var(--text-primary);
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: #1793D1;
    border-radius: 1px;
}

/* Academic Career Section Styles */
.academic-section {
    padding: 0 4rem 4rem 4rem;
    margin-bottom: 3rem;
}

.academic-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.academic-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--border-secondary);
}

.academic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.academic-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.academic-header .year {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.academic-details .program {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.status-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dissertation {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-publication {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-conference {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.achievements {
    margin-top: 1rem;
    margin-bottom: 0rem;
    padding: 0.75rem;
    background: rgba(23, 147, 209, 0.1);
    border: 1px solid rgba(23, 147, 209, 0.2);
    border-radius: var(--radius-sm);
}

.achievements strong {
    color: #1793D1;
    font-weight: 600;
}

.description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.error {
    color: #ef4444;
    text-align: center;
    padding: 2rem;
    font-weight: 500;
}

footer {
    color: var(--text-secondary);
    margin-top: 4rem;
    padding: 1rem;
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    clear: both;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .mac-window {
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .mac-titlebar {
        height: 32px;
        padding: 0 12px;
        border-radius: 8px 8px 0 0;
    }
    
    .mac-button {
        width: 14px;
        height: 14px;
    }
    
    .mac-title {
        font-size: 12px;
        max-width: calc(100% - 120px);
    }
    
    .mac-content {
        min-height: calc(100vh - 60px);
        border-radius: 0 0 8px 8px;
    }
    
    .main-header {
        padding: 0.5rem 1rem;
    }
    
    .nav-container {
        max-width: 100%;
        gap: 1rem;
    }
    
    .nav-left,
    .nav-right {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .academic-section {
        padding: 0 2rem 3rem 2rem;
        margin-bottom: 2rem;
    }
    
    .academic-item {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
    }
    
    .academic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .academic-header h3 {
        font-size: 1.125rem;
        min-width: auto;
    }
    
    .status-container {
        justify-content: flex-start;
    }
    
    h2 {
        font-size: 1.25rem;
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    h2::after {
        left: 1.5rem;
        right: 1.5rem;
    }
    
    footer {
        margin-top: 0rem;
        padding: 1rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .mac-window {
        border-radius: 6px;
    }
    
    .mac-titlebar {
        height: 28px;
        padding: 0 8px;
    }
    
    .mac-buttons {
        gap: 6px;
    }
    
    .mac-button {
        width: 12px;
        height: 12px;
    }
    
    .mac-title {
        font-size: 11px;
        max-width: calc(100% - 100px);
    }
    
    .main-header {
        padding: 0.8rem;
    }
    
    .container {
        padding: 0.8rem;
    }
    
    .academic-section {
        padding: 0 1.5rem 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .academic-item {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .academic-header h3 {
        font-size: 1rem;
    }
    
    .achievements {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .description {
        font-size: 0.875rem;
    }
    
    h2::after {
        left: 1rem;
        right: 1rem;
    }
    
    footer {
        margin-top: 2rem;
        padding: 0.8rem;
    }
}
