/* Modern App Design - Matching PDF Mockups */

/* Base Layout Adjustments */
.app-container {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f1419 100%);
    min-height: 100vh;
}

/* Enhanced Status Bar - Hidden for cleaner PWA */
.status-bar {
    display: none !important; /* iOS shows its own status bar */
}

/* Modernized Header - Hidden for PWA */
.app-header {
    display: none !important; /* Remove header completely in PWA */
}

.header-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.header-back {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

/* Enhanced Circular Navigation */
.circular-nav-container {
    min-height: calc(100vh - var(--tab-bar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: calc(env(safe-area-inset-top) + 20px);
}

/* Fractal Navigation System - Zoom Diving Effect */
.nav-level {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.3) translateZ(-100px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: blur(5px);
}

.nav-level.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateZ(0);
    filter: blur(0);
}

.nav-level.diving-out {
    transform: scale(2) translateZ(100px);
    opacity: 0;
    filter: blur(8px);
}

.nav-level.pulling-in {
    transform: scale(0.2) translateZ(-200px);
    opacity: 0;
    filter: blur(10px);
}

/* Center Hub Styling */
.center-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.center-circle.main-hub {
    border: 2px solid rgba(251, 191, 36, 0.3);
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.05), transparent);
}

.center-circle:before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Orbital Items */
.nav-items {
    position: absolute;
    width: 320px;
    height: 320px;
    pointer-events: none;
}

.nav-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    pointer-events: all;
    transform-origin: center;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.nav-item:hover {
    z-index: 10;
}

.nav-item:nth-child(1) { animation-delay: 0s; }
.nav-item:nth-child(2) { animation-delay: 5s; }
.nav-item:nth-child(3) { animation-delay: 10s; }
.nav-item:nth-child(4) { animation-delay: 15s; }

@keyframes float {
    0%, 100% { 
        transform: rotate(var(--angle)) translateY(-120px) rotate(calc(-1 * var(--angle))) scale(1);
    }
    50% { 
        transform: rotate(var(--angle)) translateY(-120px) rotate(calc(-1 * var(--angle))) scale(1.05);
    }
}

/* Domain & Focus Circles */
.domain-circle,
.focus-circle,
.fast-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 8px;
}

.domain-circle:hover,
.focus-circle:hover,
.fast-circle:hover {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.05);
    transform: scale(1.05);
}

.domain-circle:active,
.focus-circle:active,
.fast-circle:active {
    transform: scale(0.95);
}

/* Connection Lines */
.nav-connection {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform-origin: center top;
    pointer-events: none;
}

/* Text Styling */
.domain-number {
    font-size: 24px;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    margin-bottom: 6px;
}

.domain-name {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    line-height: 1.1;
    text-transform: uppercase;
}

.focus-name {
    font-size: 9px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2px;
    line-height: 1.1;
    word-break: break-word;
    hyphens: auto;
}

.fast-label {
    font-size: 9px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: center;
}

.circle-label {
    font-size: 20px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 1px;
}

.circle-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Enhanced Tab Bar - Icons Only */
.tab-bar {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: env(safe-area-inset-bottom, 0);
    height: calc(50px + env(safe-area-inset-bottom));
}

.tab-item {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.tab-item.active {
    color: var(--accent-primary);
}

.tab-item:active {
    transform: scale(0.92);
}

.tab-icon {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
    display: block;
}

.tab-item.active .tab-icon {
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.3));
}

.tab-label {
    display: block; /* Show text labels */
    font-size: 11px;
    margin-top: 4px;
}

/* Today Screen Enhancements */
.today-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.trigger-time {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.trigger-time.active {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.check-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.check-btn:hover {
    border-color: rgba(251, 191, 36, 0.5);
    color: var(--accent-primary);
    background: rgba(251, 191, 36, 0.1);
}

.check-btn.checked {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* Progress Visualization */
.progress-ring {
    filter: drop-shadow(0 4px 20px rgba(251, 191, 36, 0.2));
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 20px;
}

.week-item {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.week-item.completed {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.week-item.current {
    border-color: rgba(251, 191, 36, 0.5);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(251, 191, 36, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

.week-item.special {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(96, 165, 250, 0.3));
    border-color: var(--accent-primary);
    color: white;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 375px) {
    .center-circle {
        width: 140px;
        height: 140px;
    }
    
    .nav-items {
        width: 280px;
        height: 280px;
    }
    
    .nav-item {
        width: 70px;
        height: 70px;
        margin: -35px 0 0 -35px;
    }
}

@media (min-width: 414px) {
    .center-circle {
        width: 180px;
        height: 180px;
    }
    
    .nav-items {
        width: 360px;
        height: 360px;
    }
    
    .nav-item {
        width: 90px;
        height: 90px;
        margin: -45px 0 0 -45px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .app-container {
        background: linear-gradient(180deg, #0f1419 0%, #000000 100%);
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
}

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

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

button:focus,
a:focus {
    outline: none;
}

/* Safe Area Support */
.app-container {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-bar {
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
}

/* FAST Detail View */
.fast-detail {
    position: absolute;
    bottom: 100px;
    left: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.fast-detail.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fast-detail-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.fast-detail-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fast-detail-card p {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}