/**
 * OrdinalNews Card Styles for Single Post View
 * Dark theme styling for the card in post content
 */

/* Main card container in single post */
.ordinalnews-post-card-content {
    border-radius: 10px;
    margin: 20px 0 50px;
    color: #ffffff;
}

/* Metadata styling - exactly like in the image */
.ordinalnews-post-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ordinalnews-post-meta-item {
    background-color: #27292d;
    padding: 11.377px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: default;
    text-align: center;
}

.ordinalnews-post-meta-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 107, 0, 0.2), inset 0 0 8px rgba(255, 107, 0, 0.15);
    background-color: #2c2e33;
}

.ordinalnews-post-meta-item:hover .ordinalnews-post-meta-value {
    color: #ff8a20;
}

.ordinalnews-post-meta-label {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 400;
    margin-right: 5px;
}

.ordinalnews-post-meta-value {
    font-size: 16px;
    color: #ff7a00;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Social links styling with boxes like the metadata */
.ordinalnews-post-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Convert social links to boxed style like metadata */
.ordinalnews-post-link {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: #27292d;
    border-radius: 10px;
    padding: 20px;
    color: #ff7a00;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.ordinalnews-post-link:hover {
    background-color: #FF6B00;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ordinalnews-post-link:hover .ordinalnews-link-label {
    color: #ffffff !important;
}

.ordinalnews-post-link .ordinalnews-svg-icon {
    margin-right: 10px;
}

/* Add labels to social links */
.ordinalnews-post-link::after {
    content: attr(title);
    font-size: 14px;
    color: #adb5bd;
    margin-top: 5px;
    text-align: center;
}

/* Project Links section title */
.ordinalnews-post-links-title {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 400;
}

/* Launchpad link styling */
.ordinalnews-launchpad-link {
    color: #FF6B00 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ordinalnews-launchpad-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Laptop - wide screen responsive adjustments (1025px - 1121px) */
@media (min-width: 1025px) and (max-width: 1121px) {
    .ordinalnews-post-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .ordinalnews-post-link {
        padding: 15px 10px;
    }
    
    .ordinalnews-link-label {
        font-size: 14px;
    }
    
    .ordinalnews-post-link .ordinalnews-svg-icon {
        margin-right: 7px;
    }
}

/* Tablet responsive adjustments (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .ordinalnews-post-meta {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .ordinalnews-post-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ordinalnews-post-meta-item {
        padding: 15px;
    }
    
    /* Style social media boxes like metadata boxes */
    .ordinalnews-post-link {
        background-color: #27292d;
        padding: 11.377px 15px;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .ordinalnews-post-link:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(255, 107, 0, 0.2), inset 0 0 8px rgba(255, 107, 0, 0.15);
        background-color: #2c2e33;
    }
    
    .ordinalnews-post-meta-label,
    .ordinalnews-post-meta-value {
        font-size: 15px;
    }
    
    .ordinalnews-link-label {
        margin-left: 5px;
        font-size: 15px;
    }
    
    .ordinalnews-post-link .ordinalnews-svg-icon {
        margin-right: 0;
        width: 25px;
        height: 25px;
    }
    
    /* Sosyal link hover stilini meta ile uyumlu hale getiriyoruz */
    .ordinalnews-post-link:hover {
        background-color: #2c2e33;
        color: #ff8a20 !important;
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(255, 107, 0, 0.2), inset 0 0 8px rgba(255, 107, 0, 0.15);
    }
    
    .ordinalnews-post-link:hover .ordinalnews-link-label {
        color: #ff8a20 !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .ordinalnews-post-meta {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ordinalnews-post-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .digit.sliding-current,
    .digit.sliding-next {
        animation: none;
        transition: none;
    }
    
    .digit.sliding-current {
        transform: translateY(100%);
    }
    
    .digit.sliding-next {
        transform: translateY(0);
    }
}

/* Meta Countdown Styles */
.ordinalnews-meta-countdown {
    font-weight: 600;
    color: #FF6B00;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.ordinalnews-meta-countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.ordinalnews-meta-countdown-number {
    display: inline-flex;
    height: 26px;
    position: relative;
    overflow: hidden;
}

.ordinalnews-meta-countdown-number .digit-container {
    position: relative;
    width: 12px;
    height: 100%;
    display: inline-block;
    overflow: hidden;
}

.ordinalnews-meta-countdown-number .digit {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease-in-out;
    font-size: 16px;
}

/* Add animation classes for the meta countdown */
.ordinalnews-meta-countdown-number .digit.current {
    transform: translateY(0);
}

.ordinalnews-meta-countdown-number .digit.next {
    transform: translateY(-100%);
}

.ordinalnews-meta-countdown-number .digit.sliding-current {
    animation: metaSlideCurrentDown 0.4s ease-in-out forwards;
}

.ordinalnews-meta-countdown-number .digit.sliding-next {
    animation: metaSlideNextDown 0.4s ease-in-out forwards;
}

@keyframes metaSlideCurrentDown {
    0% { transform: translateY(0); opacity: 1; }
    50% { opacity: 0.8; }
    100% { transform: translateY(100%); opacity: 0; }
}

@keyframes metaSlideNextDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(0); opacity: 1; }
}

.meta-unit {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
    margin: 0 2px;
    opacity: 0.7;
}

.ordinalnews-meta-countdown-label {
    color: #FFFFFF;
    font-weight: 400;
    font-size: 16px;
}

.ordinalnews-meta-countdown-expired {
    color: #FF6B00;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

/* Add styles for the completed mint state */
.ordinalnews-meta-countdown-expired.completed {
    color: #FF6B00;
}

.ordinalnews-meta-countdown-live {
    color: #ff7a00;
    font-size: 16px;
    font-weight: 600;
    margin-left: 5px;
}

/* Add to Calendar hover functionality - ONLY for active countdowns */
.ordinalnews-post-meta-item.countdown-active {
    position: relative;
    overflow: hidden;
}

.countdown-display {
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
}

.add-to-calendar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.add-to-calendar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* ONLY apply hover effects to the active countdown */
.ordinalnews-post-meta-item.countdown-active:hover .countdown-display {
    opacity: 0;
}

.ordinalnews-post-meta-item.countdown-active:hover .add-to-calendar-overlay {
    opacity: 1;
}

/* Also add a background color change on hover ONLY for the active countdown */
.ordinalnews-post-meta-item.countdown-active:hover {
    background-color: #ff7a00;
}

/* Rest of the CSS */ 