/*
Theme Name: PokePapi Liquid Glass
File: pokepapi-glass/style.css
Version: 1.1.0
Last Modified: 2025-11-24 06:40 PM
Changes: Fixed Desktop Layout, Dynamic Classes
*/

/* --- 1. RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(20px) saturate(180%);
    --accent-color: #5e5ce6;
    --text-dark: #1d1d1f;
    --font-main: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-main);
    background-size: cover;
    height: 100vh;
    overflow: hidden;
    color: var(--text-dark);
}

/* --- 2. DESKTOP GRID (Fixed) --- */
.os-desktop {
    display: grid;
    /* Responsive Grid: Items roughly 100px wide */
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    /* Rows start immediately after status bar */
    grid-auto-rows: 110px;
    gap: 15px;

    /* Layout Positioning */
    padding: 60px 20px 120px 20px;
    /* Top padding clears Status Bar (32px), Bottom clears Dock */
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    /* Allow scrolling if too many apps */
    align-content: start;
    /* Force items to top */
}

/* App Items (Menu Wrapper) */
.app-item-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: none;
    transition: transform 0.2s;
}

.app-icon:hover {
    transform: scale(1.05);
}

.app-icon-graphic {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 5px;
    backdrop-filter: blur(4px);
    color: #333;
}

.app-icon-label {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- 3. DOCK --- */
.os-dock-container {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1500;
    pointer-events: none;
    /* Let clicks pass through container area */
}

.os-dock {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 15px;
    border-radius: 24px;
    display: flex;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Dock Specific Icon overrides */
.os-dock .app-item-wrapper {
    margin: 0;
}

.os-dock .app-icon-label {
    display: none;
}

/* No labels in dock */
.os-dock .app-icon:hover {
    transform: translateY(-10px) scale(1.1);
}

/* --- 4. STATUS BAR --- */
.os-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: 2000;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.logo-accent {
    color: #ffd700;
}

/* --- 5. ICONS & CLASSES (From Menu) --- */
/* Custom gradients based on user classes */
.icon-news .app-icon-graphic {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
}

.icon-art .app-icon-graphic {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: white;
}

.icon-dex .app-icon-graphic {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    color: white;
}

.icon-about .app-icon-graphic {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: white;
}

/* --- 6. WINDOW UI --- */
.os-window {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 80%;
    max-width: 1100px;
    transform: translate(-50%, -45%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(40px);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.os-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.window-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.window-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff5f56;
    border: none;
    cursor: pointer;
}

/* Web 3.0 Typography */
.post-modern-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.glass-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (min-width: 1024px) {
    .os-desktop {
        padding: 80px 40px;
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 30px;
    }
}

/* ===END OF FILE (FILENAME: /wp-content/themes/pokepapi-glass/style.css)=== */