@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

.poll-widget-grid {
    display: flex;
    gap: 5%;
    row-gap: 40px;
    padding-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.rank-bubble {
    width: 70px;
    height: 70px;
    background-image: url('../img/ranking-icon.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    padding-bottom: 3px;
    color: #fff;
    margin-left: auto;
}

.poll-profile-card {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 284px;
    font-family: Montserrat, sans-serif;
    color: white;
    aspect-ratio: 286/580;
    transition: background 0.4s ease;
}

.poll-profile-card:hover {
/*     background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 50%), radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08), transparent 50%), linear-gradient(135deg, rgb(119 117 117 / 70%), rgb(77 77 77 / 60%), rgb(76 74 74 / 75%), rgba(50, 50, 50, 0.65)); */
	background: #de5c55;
}

.poll-profile-card.rank-1,
.poll-profile-card--single {
    max-width: 358px;
    aspect-ratio: 286/552;
}

.poll-profile-card.rank-1 .rank-bubble,
.poll-profile-card--single .rank-bubble {
    width: 100px;
    height: 100px;
    font-size: 37px;
    padding-bottom: 5px;
}

img.profile-image {
    max-width: 100%;
    border-radius: 50%;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
}

.profile-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f0f0f0;
    margin: 10px auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.profile-name {
    margin: 10px 0;
    font-size: 18px;
    margin-top: 0;
}

.info-section {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 4px 16px;
    border-radius: 12px;
    background-color: rgba(255,255,255,.07);
    margin-bottom: 4px;
}

.profile-number {
    font-size: 20px;
    font-weight: 600;
    padding-right: 20px;
    border-right: 1px solid white;
}

.profile-number span {
    font-size: 18px;
    font-weight: 400;
}

.profile-province {
    margin-bottom: 8px;
}

.vote-count {
    font-size: 20px;
    font-weight: 600;
    flex-grow: 1;
    text-align: right;
}

.vote-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    position: absolute;
    left: 20px;
    bottom: 16px;
    width: calc(100% - 40px);
}

button.vote-btn {
    color: rgb(59, 85, 201);
    background-color: white;
    border: none;
    padding: 7px 20px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    width: min(120px, 100%);
}

button.vote-btn.voted {
    cursor: none;
    pointer-events: none;
    color: rgb(121 121 121);
    background-color: #585858;
}
    
.mirror-black {
    width: 100%;
/*     background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08), transparent 50%),
        linear-gradient(135deg, 
            rgba(40, 40, 40, 0.7), 
            rgba(60, 60, 60, 0.6), 
            rgba(30, 30, 30, 0.75), 
            rgba(50, 50, 50, 0.65)); */
	background: #C9362E;
    border-radius: 15px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Loading animation */

@keyframes vote-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vote-loading-icon {
    filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.1));
    pointer-events: none;
    z-index: 1;
}

/* Copy link button */

.copy-profile-link-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-decoration: none;
    display: inline-block;
    margin-left: 16px;
    margin-bottom: 6px;
}

.copy-profile-link-btn:focus {
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

.copy-profile-link-btn:hover {
    background: none;
    border: none;
    background-color: transparent;
}

@media (max-width: 1024px) {
    .poll-widget-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .poll-profile-card.rank-1,
    .poll-profile-card--single {
        order: 0 !important;
    }
}