/* Hügelton Instruments - Shared Updater Styles */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,700&display=swap');

:root {
    /* Grayscale palette */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --black: #000000;

    /* Applied colors - Dark mode only */
    --primary-color: var(--gray-800);
    --accent-color: var(--gray-600);
    --text-color: var(--gray-100);
    --bg-color: var(--gray-900);
    --bg-alt: var(--gray-800);
    --link-color: var(--gray-300);
    --link-hover: var(--gray-100);

    /* UI elements */
    --border-color: var(--gray-700);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Clash Display", sans-serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Float Menu */
.float-menu {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    animation: fadeInSlide 0.6s ease-out;
}

.menu-container {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.menu-logo:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo-icon {
    width: 20px;
    height: 20px;
    color: var(--text-color);
}

.menu-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.menu-link ion-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Main Content */
.main-container {
    min-height: 100vh;
    padding: 6rem 2rem 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: "Clash Display", sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

/* Cards and Sections */
.intro, .description {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-warn {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Steps */
.step {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.05);
}

.step p {
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

/* Buttons */
button, .install-button, .update-button {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: inherit;
}

button:hover, .install-button:hover, .update-button:hover {
    background: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.install-section {
    margin: 2rem 0;
    text-align: center;
}

.install-button {
    font-size: 1rem;
    padding: 1rem 2rem;
}

/* Error Messages */
.error-message {
    background: rgba(239, 83, 80, 0.1);
    color: #ef5350;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(239, 83, 80, 0.3);
    margin: 1rem 0;
}

.hidden {
    display: none;
}

/* Download Links */
.download-button {
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    margin: 1rem 0;
}

.download-button:hover {
    background: var(--gray-500);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Footer */
footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: "Clash Display", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-color);
}

.footer-location {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .float-menu {
        top: 1rem;
        left: 1rem;
    }

    .main-container {
        padding: 4rem 1rem 2rem 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .step {
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ESP Web Tools specific styling */
esp-web-install-button {
    --esp-tools-button-color: var(--text-color);
    --esp-tools-button-text-color: var(--bg-color);
}

/* Language switching */
span[lang] {
    display: none;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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