/* ============================================
   USA FLAG COMPONENT
   Based on proven CSS flag examples from CodePen and CSS community
   Using repeating-linear-gradient for stripes and Unicode stars
   ============================================ */

/* USA Flag - White Version (for dark backgrounds)
   Using white stripes with light gray alternating */
.usa-flag-white {
    width: 60px;
    height: 32px;
    position: relative;
    display: inline-block;
    /* 13 stripes using repeating-linear-gradient */
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.95) 7.69%,
        rgba(255, 255, 255, 0.4) 7.69%,
        rgba(255, 255, 255, 0.4) 15.38%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

/* Blue canton (star field) */
.usa-flag-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.85%; /* 7 stripes tall */
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

/* Stars using Unicode character */
.usa-flag-white::after {
    content: '★ ★ ★ ★ ★ ★\A ★ ★ ★ ★ ★\A★ ★ ★ ★ ★ ★\A ★ ★ ★ ★ ★\A★ ★ ★ ★ ★ ★\A ★ ★ ★ ★ ★\A★ ★ ★ ★ ★ ★\A ★ ★ ★ ★ ★\A★ ★ ★ ★ ★ ★';
    white-space: pre;
    position: absolute;
    top: 1px;
    left: 1px;
    width: 40%;
    height: 53.85%;
    font-size: 3px;
    line-height: 3.5px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    z-index: 2;
    overflow: hidden;
}

/* USA Flag - Navy Version (for light backgrounds) */
.usa-flag-navy {
    width: 60px;
    height: 32px;
    position: relative;
    display: inline-block;
    /* 13 stripes - alternating navy and white */
    background: repeating-linear-gradient(
        0deg,
        var(--orcrist-navy, #2C4A62) 0%,
        var(--orcrist-navy, #2C4A62) 7.69%,
        rgba(255, 255, 255, 0.95) 7.69%,
        rgba(255, 255, 255, 0.95) 15.38%
    );
    border: 1px solid rgba(44, 74, 98, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

/* Blue canton */
.usa-flag-navy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.85%;
    background: var(--orcrist-white, #FFFFFF);
    z-index: 1;
}

/* Stars */
.usa-flag-navy::after {
    content: '★ ★ ★ ★ ★ ★\A ★ ★ ★ ★ ★\A★ ★ ★ ★ ★ ★\A ★ ★ ★ ★ ★\A★ ★ ★ ★ ★ ★\A ★ ★ ★ ★ ★\A★ ★ ★ ★ ★ ★\A ★ ★ ★ ★ ★\A★ ★ ★ ★ ★ ★';
    white-space: pre;
    position: absolute;
    top: 1px;
    left: 1px;
    width: 40%;
    height: 53.85%;
    font-size: 3px;
    line-height: 3.5px;
    color: var(--orcrist-navy, #2C4A62);
    letter-spacing: 0.5px;
    z-index: 2;
    overflow: hidden;
}

/* Made in USA component wrapper */
.made-in-usa {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
}

.made-in-usa p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

/* Size variations */
.usa-flag-white-small,
.usa-flag-navy-small {
    width: 45px;
    height: 24px;
}

.usa-flag-white-small::after,
.usa-flag-navy-small::after {
    font-size: 2.25px;
    line-height: 2.6px;
    letter-spacing: 0.4px;
}

.usa-flag-white-large,
.usa-flag-navy-large {
    width: 75px;
    height: 40px;
}

.usa-flag-white-large::after,
.usa-flag-navy-large::after {
    font-size: 3.75px;
    line-height: 4.4px;
    letter-spacing: 0.6px;
}
