/* Base CSS for theme switcher and shared elements */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    background-color: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    width: 200px;
    top: 50px;
    right: 0;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1001;
}

.tooltip.visible {
    opacity: 1;
}

.tooltip p {
    margin: 0;
    line-height: 1.4;
}

.tooltip-arrow {
    position: absolute;
    top: -10px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
}

/* Theme-specific tooltip styles */
body.theme-retro .tooltip {
    background-color: #f5f7fa;
    border: 1px solid #e1e8ed;
    color: #2c3e50;
}

body.theme-retro .tooltip-arrow {
    border-bottom-color: #f5f7fa;
}

body.theme-trail .tooltip {
    background: linear-gradient(to bottom, rgba(240, 211, 155, 0.95), rgba(205, 152, 83, 0.95));
    color: #3a2c1d;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

body.theme-trail .tooltip-arrow {
    border-bottom-color: rgba(240, 211, 155, 0.95);
}

body.theme-desktop .tooltip {
    background-color: #c0c0c0;
    border: 2px outset white;
    color: #000;
    font-family: 'Arial', sans-serif;
    box-shadow: 2px 2px 0 #888;
    padding: 8px;
}

body.theme-desktop .tooltip-arrow {
    border-bottom-color: #c0c0c0;
}

#theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-color: #fff;
}

#theme-toggle-btn:hover {
    transform: scale(1.1);
}

#theme-toggle-icon {
    font-size: 1.5rem;
    color: #333;
    transition: transform 0.5s ease;
}

body.theme-retro #theme-toggle-btn {
    background-color: #f5f7fa;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
}

body.theme-retro #theme-toggle-icon {
    color: #3498db;
}

body.theme-trail #theme-toggle-btn {
    background-color: #262626;
}

body.theme-trail #theme-toggle-icon {
    color: #7fff00;
}

body.theme-desktop #theme-toggle-btn {
    background-color: #c0c0c0;
    border: 2px outset white;
}

body.theme-desktop #theme-toggle-icon {
    color: #000080;
}

body.theme-cyberpunk #theme-toggle-btn {
    background-color: #000;
    box-shadow: 0 0 10px #0df2ff;
    border: 1px solid #ff0099;
}

body.theme-cyberpunk #theme-toggle-icon {
    color: #ff0099;
}

body.theme-dossier #theme-toggle-btn {
    background-color: #f5f5dc;
    border: 1px solid #333;
}

body.theme-dossier #theme-toggle-icon {
    color: #cc0000;
}

/* Added for full height layout without scrolling */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure photo is properly centered */
.photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    position: relative;
}

/* Two-column layout */
.content-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    max-width: 1200px; /* Added for better responsiveness */
    margin-left: auto;
    margin-right: auto;
}

.column {
    flex: 1;
}

/* Footer styling - adjusted to stay in view */
#footer {
    margin-top: auto;
    padding: 10px 0;
    width: 100%;
}

/* Social icons styling */
#social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link i {
    display: block;
}

/* Adjusted overall layout for better spacing */
#banner {
    padding: 20px 0;
    text-align: center;
}

.section {
    padding: 15px;
    box-sizing: border-box;
}

/* Screen reader only class - for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

/* Responsive design basics */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .theme-toggle {
        position: fixed;
        bottom: 20px;
        top: auto;
        right: 20px;
    }
    
    /* Stack columns on small screens */
    .content-row {
        flex-direction: column;
    }
    
    /* Adjust social icons on mobile */
    .social-link {
        font-size: 1.3rem;
    }
}