/**
 * How Is It? - Application Stylesheet
 *
 * Responsive design with gradient background and fixed header layout.
 * Supports desktop and mobile viewports with flexible wrapping.
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(to right, #e8f5e9 0%, #fff3e0 20%, #ffe0b2 40%, #ffccbc 60%, #ffcdd2 80%, #f8bbd0 100%);
    min-height: 100vh;
    color: #333;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
    z-index: 1000;
}

.header-left {
    flex: 0 0 auto;
}

.header-left h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-dropdown {
    font-size: 2rem;
    font-weight: 700;
    border: none;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    appearance: none;
}

.mode-dropdown:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.mode-dropdown:focus {
    outline: 3px solid rgba(255, 107, 107, 0.5);
    outline-offset: 2px;
}

.mode-dropdown option {
    background-color: #2c3e50;
    color: white;
    padding: 10px;
    font-weight: 600;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

#search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.header-right {
    flex: 0 0 300px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.25rem;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.info-content {
    font-size: 0.9rem;
    line-height: 1.6;
    width: 100%;
}

.instruction {
    color: #888;
    font-style: italic;
}

.info-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-content .shu-value {
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-content .description {
    color: #666;
    margin-top: 0.5rem;
}

/* Main Content */
main {
    margin-top: 80px;
    height: calc(100vh - 80px);
    width: 100%;
    position: relative;
}

#network-container {
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .top-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
    }

    .header-left,
    .header-center,
    .header-right {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }

    .header-right {
        flex: 1 1 100%;
    }

    main {
        margin-top: 200px;
        height: calc(100vh - 200px);
    }
}

@media (max-width: 768px) {
    .header-left h1 {
        font-size: 1.5rem;
    }

    .mode-dropdown {
        font-size: 1.5rem;
    }

    #search-input {
        font-size: 0.9rem;
    }
}
