/* YILMEX Section 4 — Kryptowährungen in Euro umrechnen (Bitcoin card first) */

.ych-root {
    --ych-bg: #0b0f14;
    --ych-card: #11161c;
    --ych-card-alt: #131a22;
    --ych-blue: #4da3ff;
    --ych-white: #ffffff;
    --ych-sub: #ffffffb8;
    --ych-border: rgba(77, 163, 255, 0.25);
    --ych-border-hover: rgba(77, 163, 255, 0.5);

    width: 100%;
    color: var(--ych-white);
    font-family: Lato, Arial, sans-serif;
    overflow-x: clip;
    background: var(--ych-bg);
}

.ych-root *,
.ych-root *::before,
.ych-root *::after {
    box-sizing: border-box;
}

.ych-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 72px;
}

.ych-header {
    margin: 0 0 24px;
    max-width: 720px;
    text-align: left;
}

.ych-title {
    margin: 0 0 12px !important;
    color: var(--ych-white) !important;
    font-size: 34px;
    font-weight: 600 !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ych-lead {
    margin: 0;
    max-width: 640px;
    color: var(--ych-sub);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
}

/* Scalable grid for future coin cards — BTC only for now */
.ych-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    justify-items: stretch;
}

.ych-coin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 0;
    padding: 22px 20px;
    border: 1px solid var(--ych-border);
    border-radius: 18px;
    background: var(--ych-card);
    color: var(--ych-white) !important;
    text-align: center;
    text-decoration: none !important;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        background 0.18s ease;
}

.ych-coin-card:hover {
    border-color: var(--ych-border-hover);
    background: var(--ych-card-alt);
    box-shadow: 0 0 0 1px rgba(77, 163, 255, 0.12);
    transform: translateY(-2px);
    color: var(--ych-white) !important;
}

.ych-coin-card:focus {
    outline: none;
}

.ych-coin-card:focus-visible {
    border-color: var(--ych-blue);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.28);
}

.ych-coin-icon {
    display: inline-flex;
    line-height: 0;
}

.ych-coin-icon-badge,
.ych-coin-icon .ycc-coin-icon {
    width: 40px;
    height: 40px;
}

.ych-coin-icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

.ych-coin-title {
    display: block;
    margin: 2px 0 0;
    color: var(--ych-white);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.ych-coin-subtitle {
    display: block;
    color: var(--ych-sub);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 980px) {
    .ych-title {
        font-size: 28px;
    }

    .ych-lead {
        font-size: 16px;
    }

    .ych-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 720px) {
    .ych-shell {
        width: calc(100% - 32px);
        padding: 16px 0 56px;
    }

    .ych-title {
        font-size: 24px;
    }

    .ych-grid {
        grid-template-columns: 1fr;
    }

    .ych-coin-card {
        width: 100%;
    }
}
