/* ============================================
   CryptoCult - Main Stylesheet
   Design: Purple/Blue cloud theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Primary Colors */
    --color-primary: #4A1D96;
    --color-primary-dark: #3A1576;
    --color-primary-light: #6B3FA0;
    
    /* Accent Colors */
    --color-accent: #D4A843;
    --color-accent-light: #E8C86E;
    
    /* Sky/Cloud Colors */
    --color-sky-light: #E8F4FC;
    --color-sky: #C5E3F6;
    --color-cloud: #FFFFFF;
    
    /* Neutral Colors */
    --color-text: #1A1A2E;
    --color-text-light: #4A4A6A;
    --color-text-muted: #7A7A9A;
    --color-border: #E0E0E8;
    --color-background: #FFFFFF;
    --color-background-alt: #F8F9FC;
    
    /* Typography */
    --font-primary: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-heading: 'Raleway', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 70px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(74, 29, 150, 0.08);
    --shadow-md: 0 4px 12px rgba(74, 29, 150, 0.12);
    --shadow-lg: 0 8px 30px rgba(74, 29, 150, 0.15);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-primary);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section--alt {
    background-color: var(--color-background-alt);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-primary);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
	min-height: 75px;
	min-width: 200px;
}

.header__logo-img {
    height: 40px;
    width: auto;
}

.header__logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header__logo-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-top: -2px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav__link {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
    transition: opacity var(--transition-fast);
}

.nav__link:hover {
    color: white;
    opacity: 0.85;
}

.nav__link--has-dropdown::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    vertical-align: middle;
    margin-top: -3px;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-selector__current {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.lang-selector__current:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-selector__current::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
}

.lang-selector__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-xs);
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.lang-selector:hover .lang-selector__dropdown,
.lang-selector__dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-selector__option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-size: 0.9rem;
    transition: background var(--transition-fast);
}

.lang-selector__option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-selector__option:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-selector__option:hover {
    background: var(--color-background-alt);
    color: var(--color-primary);
}

.lang-selector__option--active {
    background: var(--color-primary);
    color: white;
}

.lang-selector__option--active:hover {
    background: var(--color-primary-dark);
    color: white;
}

/* Mobile Menu Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: transform var(--transition-fast);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height));
    background: linear-gradient(180deg, var(--color-sky-light) 0%, var(--color-sky) 50%, var(--color-background) 100%);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: 39.85em;
    background-image: url('../images/pozadi_pod_obrazek.svg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: var(--space-3xl);
}

.hero__illustration {
    max-width: 48em;
    margin: 0 auto var(--space-lg);
}

.hero__illustration img {
    width: 100%;
    height: auto;
}

/* Placeholder for hero illustration */
.hero__illustration-placeholder {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/3;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, rgba(74, 29, 150, 0.1) 0%, rgba(197, 227, 246, 0.5) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    border: 2px dashed var(--color-border);
}

.hero__tagline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.hero__tagline-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.hero__headline {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    font-weight: 700;
	color: var(--color-primary);
}

.hero__headline-highlight {
    display: block;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--color-primary);
}

/* ---------- Features Section ---------- */
.features {
	padding-top: 0;
    background: white;
}

.features__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
	padding-left: var(--space-4xl);
}

.feature-item {
    padding-left: var(--space-xl);
}

.feature-item__title {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.feature-item__title::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-xl));
    top: 0.35em;
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
}

.feature-item__text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

.feature-item__text + .feature-item__text {
    margin-top: var(--space-sm);
}

/* ---------- Technology Section ---------- */
.technology {
    padding: var(--space-4xl) 0;
    background: var(--color-background-alt);
}

.technology__title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.technology__diagram {
    max-width: 900px;
    margin: 0 auto;
}

.technology__diagram img {
    width: 100%;
    height: auto;
}

/* Placeholder for diagram */
.technology__diagram-placeholder {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    border: 2px dashed var(--color-border);
    box-shadow: var(--shadow-sm);
}

/* ---------- About Section ---------- */
.about {
    padding: var(--space-4xl) 0;
    background: white;
}

.about__title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.about__content {
    max-width: 800px;
    margin: 0 auto;
}

.about__block {
    margin-bottom: var(--space-2xl);
}

.about__block:last-child {
    margin-bottom: 0;
}

.about__block-title {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.about__block-title::before {
    content: '→';
    color: var(--color-primary);
    font-weight: 700;
}

.about__block-text {
    color: var(--color-text-light);
    line-height: 1.7;
    padding-left: var(--space-xl);
}

.about__block-text p {
    margin-bottom: var(--space-md);
}

.about__block-text p:last-child {
    margin-bottom: 0;
}

/* ---------- Contact Section ---------- */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--color-background-alt);
}

.contact__title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: var(--space-md);
    overflow: hidden;
    border: 3px solid var(--color-sky);
}

.contact-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar placeholder */
.contact-card__avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-sky-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-card__avatar-placeholder svg {
    width: 40px;
    height: 40px;
}

.contact-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.contact-card__role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.contact-card__info {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.contact-card__info a {
    display: block;
    padding: var(--space-xs) 0;
}

.contact-card__pgp {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.contact-card__pgp:hover {
    background: var(--color-primary-dark);
    color: white;
}

.contact-card__pgp::before {
    content: '→';
    font-weight: 700;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-primary);
    color: white;
    padding: var(--space-xl) 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__logo-img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer__copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
}

.footer__link {
    color: white;
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer__link:hover {
    color: white;
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .nav__list {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        padding: var(--space-md);
        gap: 0;
    }
    
    .nav__list.is-open {
        display: flex;
    }
    
    .nav__link {
        display: block;
        padding: var(--space-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero__background {
        background-image: url('../images/pozadi_pod_obrazek_mobil.svg');
    }
    
    .hero__headline-highlight {
        font-size: 1.75rem;
    }
    
    .feature-item__text {
        font-size: 1rem;
    }
    
    .contact__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero__tagline {
        font-size: 1rem;
        padding: var(--space-sm) var(--space-md);
    }
    
    .about__block-text {
        padding-left: 0;
    }
}

/* ---------- Utilities ---------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

/* ---------- Client Zone ---------- */
.client-zone__button {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-left: var(--space-md);
}

.client-zone__button:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.client-zone--logged-in {
    position: relative;
    margin-left: var(--space-md);
}

.client-zone__toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-accent);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.client-zone__toggle:hover {
    background: var(--color-accent-light);
}

.client-zone__user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-zone__chevron {
    transition: transform var(--transition-fast);
}

.client-zone--logged-in:hover .client-zone__chevron {
    transform: rotate(180deg);
}

.client-zone__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-xs);
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.client-zone--logged-in:hover .client-zone__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.client-zone__link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.client-zone__link:first-child {
    border-radius: 8px 8px 0 0;
}

.client-zone__link:hover {
    background: var(--color-background-alt);
    color: var(--color-primary);
}

.client-zone__link--logout {
    color: #dc3545;
}

.client-zone__link--logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

.client-zone__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.client-zone__divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-xs) 0;
}

.table {
	-bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: #697a8d;
    --bs-table-striped-bg: #f9fafb;
    --bs-table-active-color: #697a8d;
    --bs-table-active-bg: rgba(67, 89, 113, 0.1);
    --bs-table-hover-color: #697a8d;
    --bs-table-hover-bg: rgba(67, 89, 113, 0.06);
    width: 100%;
    margin-bottom: 1rem;
    color: #697a8d;
    vertical-align: middle;
    border-color: #d9dee3;
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .client-zone__button,
    .client-zone--logged-in {
        margin-left: 0;
        margin-top: var(--space-md);
    }
    
    .client-zone__dropdown {
        right: auto;
        left: 0;
    }
}