.heart-checked {
    color: pink;
}

.heart-pointer {
    cursor: pointer;
}

.text-purple-rating {
    color: #9906d3 !important;
    font-size: 0.9rem;
}

/* component */

.star-rating {
    border:solid 0px #ccc;
    display:flex;
    flex-direction: row-reverse;
    font-size:1.25em;
    justify-content:space-around;
    padding:0 .2em;
    text-align:center;
    width:100%;
    max-width:6.5em;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .star-rating {
        font-size:1.375em;
        max-width:7em;
    }
}

@media (min-width: 768px) {
    .star-rating {
        font-size:1.5em;
        max-width:7.5em;
    }
}

.star-rating input {
    display:none;
}

.star-rating label {
    color:#ccc;
    cursor:pointer;
}

.star-rating :checked ~ label {
    color: pink;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color:pink;
}

.heartbeat {
        text-align: center;
	font-size: 1rem;
	color: #FFC0CB;
	animation: beat .50s infinite alternate;
	transform-origin: center;
}

@media (min-width: 576px) {
    .heartbeat {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .heartbeat {
        font-size: 1.25rem;
    }
}

/* Heart beat animation */
@keyframes beat{
	to { transform: scale(1.2); }
}

.cookiepolicy {
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    background-color: #d38585;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Responsive cookie policy */
@media (min-width: 576px) {
    .cookiepolicy {
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .cookiepolicy {
        font-size: 0.95rem;
        padding: 1.25rem 2rem;
    }
}

/* Mobile fixes */

/* Responsive images in article content */
article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

article table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Code blocks responsive */
pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    word-wrap: break-word;
}

/* Navbar brand responsive */
@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1rem;
        max-width: 70%;
        white-space: normal;
        line-height: 1.2;
    }
}

/* Navbar links: tutto su una riga */
@media (min-width: 992px) {
    #mainNav .navbar-nav {
        flex-wrap: nowrap;
    }
    #mainNav .navbar-nav .nav-link {
        white-space: nowrap;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        letter-spacing: 0.02em;
        font-size: 0.7rem;
    }
}

/* Prevent horizontal overflow */
body {
    overflow-x: hidden;
}

article {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Ko-fi button */
.kofi-btn {
    display: inline-block;
    vertical-align: middle;
}

.kofi-btn img {
    border: 0;
    height: 36px;
}

/* Post actions bar */
.post-actions-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

#google_translate_element {
    margin-bottom: 1rem;
}

/* Post rating container */
.post-rating-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Post footer actions */
.post-footer-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

@media (max-width: 575px) {
    .post-actions-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-actions-social {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Site footer */
footer.site-footer {
    background-color: #F4A8A8;
    margin-top: 3rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

footer.site-footer .nav-link {
    color: #5a1a1a;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

footer.site-footer .nav-link:hover {
    color: #3a0a0a;
    text-decoration: underline;
}

footer.site-footer .nav-link.text-warning {
    color: #5a1a1a !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

footer.site-footer .copyright {
    color: #5a1a1a;
}