/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utility to ensure footer stays at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Card Hover Effects */
.hover-card-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Category Card Styling */
.category-card {
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
}

.category-list-item {
    background-color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-list-item:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* Clock Styling */
.digital-clock-container {
    background: #e5e5e5;
    border: 1px solid #d4d4d4;
    border-radius: 1rem;
    /* pill shape */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.digital-clock-text {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
}

.digital-date-text {
    font-family: 'Orbitron', sans-serif;
}

/* Avatar Overlap */
.avatar-overlap {
    position: relative;
    margin-top: -24px;
    margin-left: 16px;
    z-index: 10;
    border: 4px solid white;
}

/* PRISM JS CUSTOMIZATION */

/* Wrapper created by toolbar plugin */
div.code-toolbar {
    position: relative;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* The code block itself */
div.code-toolbar>pre[class*="language-"] {
    margin: 0;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    /* Top padding space for toolbar */
    border-radius: 0.5rem;
    background: #f8f8f8;
    /* Light background */
    border: 1px solid #e5e7eb;
}

/* The Toolbar (Header Bar) */
div.code-toolbar>.toolbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background: #2d2d2d;
    /* Dark header */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align items to right (copy button), usually language is inserted first */
    padding: 0 1rem;
    box-sizing: border-box;
    z-index: 10;
    opacity: 1 !important;
    /* Force visible */
}

/* Specific hack to move "Show Language" span to the LEFT */
div.code-toolbar>.toolbar>.toolbar-item:first-child {
    margin-right: auto;
    /* Pushes other items to the right */
}

/* Toolbar Items (Language label, Copy button) */
div.code-toolbar>.toolbar>.toolbar-item {
    display: inline-flex;
}

/* Language Label Styling */
div.code-toolbar>.toolbar>.toolbar-item>span,
div.code-toolbar>.toolbar>.toolbar-item>span.label-text {
    color: #e5e5e5;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: monospace;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Copy Button Styling */
div.code-toolbar>.toolbar>.toolbar-item>button {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    box-shadow: none;
}

div.code-toolbar>.toolbar>.toolbar-item>button:hover {
    background: #444;
    color: #fff;
    border-color: #777;
}

/* Add Mac-like window dots if specific class/attribute used (Optional, kept simple for now) */