@import url(/css/global.css);

.btn {
    padding: .7rem 1rem;
    width: clamp(7.5rem, 12vw, 8.7rem);
    font-size: clamp(.6rem, 3vw, .9rem);
}

.btn-primary {
    background: var(--mrc);
    color: #fff;
    box-shadow: 0 4px 15px var(--mrc-glow);
}

.btn-primary:hover {
    background: var(--mrc-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--mrc-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.rdct-card {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rdct-header {
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .rdct-header {
        flex-direction: column;
        gap: 1rem;
    }
}

.favicon-wrap {
    flex: 1;
}

.favicon-wrap-inner {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
}

.favicon-wrap-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.status-wrap {
    flex: 2;
}

.status-wrap-title {
    line-height: 1;
    margin-bottom: 0.5rem;
}

.blinking {
    color: #4ade80;
    animation: blinking 1s linear infinite;
}

@keyframes blinking {
    to {
        opacity: 0;
    }
}

.blinking.f {
    color: var(--mrc);
}

.rdct-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    width: 280px;
}

@media (min-width: 480px) {
    .rdct-box {
        width: 320px;
    }
}


.rdct-label {
    letter-spacing: 0.1em;
}

.rdct-value {
    word-break: break-all;
}

.domain-highlight .subdomain {
    opacity: 0.6;
}

.domain-highlight .rootdomain {
    color: var(--mrc);
    font-weight: 900;
}

/* Badges */
.badge {
    display: inline-flex;
    border-radius: 999px;
    width: fit-content;
    padding: .2rem .5rem;
}

.badge-low {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-medium {
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.badge-high {
    background: rgba(244, 66, 52, 0.1);
    color: #f87171;
    border: 1px solid rgba(244, 66, 52, 0.2);
}

/* Layout Grids */
.rdct-grid {
    display: grid;
    justify-items: center;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .rdct-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* QR Code */
.qr-box {
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.75rem;
    outline: 2.5px dotted var(--mrc);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 260px;
    aspect-ratio: 1;
}

@media (min-width: 480px) {
    .qr-box {
        height: 300px;
    }
}

.qr-box img {
    width: 100%;
    height: 100%;
}

/* Countdown */
.countdown-wrapper {
    padding: 0 1rem;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--mrc);
    line-height: 1;
    font-family: var(--font-mono);
}

/* Share Modal Overlay */
.modal-overlay {
    background: rgb(0 0 0 / 30%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 500px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-content-grid-style {
    background-image: linear-gradient(var(--glass-border) 1px, rgb(244 66 52 / 40%) 1px), linear-gradient(90deg, rgb(255 255 255 / 40%) 1px, rgb(0 0 0 / 20%) 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.share-grid {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    background: var(--glass-bg);
    display: flex;
    width: fit-content;
    height: fit-content;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    padding: 1rem;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--mrc);
}

.share-btn .icon {
    height: 1.5rem;
    width: 1.5rem;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
    margin-top: auto;
}

/* Animations Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}