/* Country Flag CSS — ISO 2-letter code classes */

.flag {
    display: inline-block;
    width: 24px;
    height: 16px;
    background-size: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,.08);
}

.flag-lg {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    margin-right: 0;
    margin-bottom: 8px;
}

/* Turkey */
.flag-TR {
    background-color: #e30a17;
    position: relative;
    overflow: hidden;
}
.flag-TR::after {
    content: '☽★';
    color: #fff;
    font-size: 7px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: -1px;
}

/* Germany */
.flag-DE {
    background: linear-gradient(to bottom, #000 33.3%, #d00 33.3%, #d00 66.6%, #ffce00 66.6%);
}

/* United Kingdom */
.flag-GB {
    background-color: #012169;
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 4px,
            rgba(255,255,255,.5) 4px,
            rgba(255,255,255,.5) 5px
        ),
        linear-gradient(to right, transparent 40%, #fff 40%, #fff 60%, transparent 60%),
        linear-gradient(to bottom, transparent 40%, #fff 40%, #fff 60%, transparent 60%);
}

/* France */
.flag-FR {
    background: linear-gradient(to right, #002395 33.3%, #fff 33.3%, #fff 66.6%, #ed2939 66.6%);
}

/* Russia */
.flag-RU {
    background: linear-gradient(to bottom, #fff 33.3%, #0039a6 33.3%, #0039a6 66.6%, #d52b1e 66.6%);
}

/* UAE */
.flag-AE {
    background: linear-gradient(to bottom, #00732f 33.3%, #fff 33.3%, #fff 66.6%, #000 66.6%);
    border-left: 6px solid #e30a17;
}

/* Saudi Arabia */
.flag-SA {
    background-color: #006c35;
}
.flag-SA::after {
    content: '⚔';
    color: #fff;
    font-size: 7px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.flag-SA { position: relative; overflow: hidden; }

/* Azerbaijan */
.flag-AZ {
    background: linear-gradient(to bottom, #0092bc 33.3%, #e8192c 33.3%, #e8192c 66.6%, #00b050 66.6%);
}

/* Generic fallback */
.flag-XX {
    background-color: #ccc;
}
