/* =========================================================================
   HAP-AI Guide Styles (Cyberpunk x Space Station Theme)
   ========================================================================= */

:root {
    --glass-bg: rgba(20, 30, 50, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --neon-blue: #00d2ff;
    --neon-purple: #b026ff;
    --text-main: #ffffff;
    --text-sub: rgba(255, 255, 255, 0.6);
    --bg-dark: #0a0f1c;
    --accent-pink: #ff69b4;
    --accent-blue: #00d2ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0; 
    font-family: 'Inter', 'Zen Kaku Gothic New', sans-serif;
    background: var(--bg-dark); color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Reset Lists Globally for Drawer */
ul { list-style: none; padding: 0; margin: 0; }
li { padding: 0; margin: 0; }

/* Header */
.glass-header {
    position: fixed; top: 0; left: 0; right: 0; height: 60px;
    background: rgba(10, 15, 28, 0.7);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; z-index: 1000;
}
.header-logo { font-size: 1.2rem; font-weight: 900; letter-spacing: 1px; color: #fff; text-decoration: none; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.header-logo.with-back { display: flex; align-items: center; gap: 5px; }
.back-arrow { font-size: 0.9rem; color: var(--neon-blue); margin-right: 5px; }

/* Drawer & Menu Styles */
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1000; display: none; opacity: 0; transition: opacity 0.3s;
}
.drawer-overlay.active { display: block; opacity: 1; }
.drawer-menu {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
    background: rgba(30, 41, 59, 0.98); backdrop-filter: blur(15px);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5); border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 2000; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.drawer-menu.active { right: 0; }
.drawer-header { padding: 20px; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 1.2rem; }
.drawer-title { color: #fff; }
.drawer-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.drawer-links { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; text-align: left; }
.drawer-links li { border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: background 0.2s; }
.drawer-links li a { display: block; padding: 15px 20px; color: #fff; text-decoration: none; font-size: 1rem; }
.drawer-links li:hover { background: rgba(255,255,255,0.1); }
.drawer-links li.active { background: rgba(255, 105, 180, 0.1); border-left: 3px solid #ff69b4; }
.drawer-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 10px 0; border: none !important; padding: 0 !important; }
.menu-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; font-size: 1.5rem; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.glass-btn { border: none; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); color: #fff; border-radius: 50px; cursor: pointer; font-weight: bold; }
a { color: inherit; text-decoration: none; }

/* Ambient Background Bubbles */
.bubble {
    position: fixed; border-radius: 50%; filter: blur(80px);
    z-index: -1; opacity: 0.15; pointer-events: none;
}
.bubble-1 { width: 300px; height: 300px; background: var(--neon-blue); top: -100px; right: -100px; }
.bubble-2 { width: 400px; height: 400px; background: var(--neon-purple); bottom: -100px; left: -100px; }
.bubble-3 { width: 250px; height: 250px; background: var(--accent-pink); top: 50%; left: 50%; transform: translate(-50%, -50%); }

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}
.gradient-text {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom CSS for PWA Guide Page */

.guide-container {
    padding-top: 80px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Hero Section */
.guide-hero {
    text-align: center;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.hero-app-icon {
    width: 100%;
    height: 100%;
    border-radius: 22%; /* iOS style rounding */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 105, 180, 0.4);
}

.bounce-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.sparkle {
    position: absolute;
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite alternate;
}
.sparkle-1 { top: -10px; right: -15px; animation-delay: 0s; }
.sparkle-2 { bottom: 10px; left: -20px; font-size: 1.2rem; animation-delay: 1s; }

@keyframes twinkle {
    from { opacity: 0.3; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.2); }
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin: 0;
    line-height: 1.5;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.benefit-icon {
    font-size: 1.8rem;
}

.benefit-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Tabs */
.os-tabs-wrapper {
    display: flex;
    justify-content: center;
}

.os-tabs {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.os-tab {
    background: transparent;
    border: none;
    color: var(--text-sub);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Instructions */
.instruction-section {
    display: none;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInTab 0.4s ease-out;
}

.instruction-section.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 1.4rem;
    text-align: center;
    margin: 0 0 0.5rem 0;
    color: var(--accent-blue);
}

.instruction-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 2rem;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
    border-radius: 12px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content p {
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    font-size: 1rem;
}

.step-content .sub-note {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin: 0;
}

.highlight-action {
    color: var(--accent-pink);
    font-weight: 700;
}

.step-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Visual Sims */
.step-visual {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ios-share-wrapper {
    color: #0A84FF;
    font-size: 1.8rem;
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.icon-sim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.8em;
    font-weight: bold;
    margin: 0 4px;
}

.ios-share-icon {
    position: relative;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
    font-size: 0;
    color: #0A84FF;
}

.ios-share-icon .arrow-up {
    position: absolute;
    top: -8px;
    font-size: 14px;
    animation: moveUp 1.5s infinite;
}

@keyframes moveUp {
    0% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(-5px); opacity: 1; }
    100% { transform: translateY(-10px); opacity: 0; }
}

.ios-add-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    border: none;
}

.home-screen-sim {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sim-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sim-label {
    font-size: 0.75rem;
    color: var(--text-main);
}

.bottom-action {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.bounce-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 105, 180, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 105, 180, 0); }
}
