/* assets/css/techdrm-shortcode.css */
.techdrm-download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #0F172A;
    color: #fff;
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    width: fit-content;
}

.techdrm-download-button:hover {
    background-color: #050911;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.techdrm-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
}

.techdrm-download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px !important;
}

.techdrm-file-icon img,
.techdrm-download-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.techdrm-download-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    gap: 0.25rem;
}

.techdrm-filename {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.techdrm-filesize {
    font-size: 0.75rem;
    color: #94a3b8;
}

.techdrm-error {
    padding: 1rem;
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

/* Animação hover do ícone de download */
.techdrm-download-button:hover .techdrm-download-icon svg {
    animation: bounce 0.5s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Responsividade */
@media (max-width: 640px) {
    .techdrm-download-button {
        padding: 0.5rem 0.75rem;
    }

    .techdrm-file-icon img,
    .techdrm-download-icon img {
        width: 16px;
        height: 16px;
    }
}

/* Modal de Loading */
.techdrm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.techdrm-modal {
    background: #1E293B;
    border-radius: 1rem;
    padding: 2rem 3rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-width: 90%;
    width: 320px;
}

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

.techdrm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: techdrm-spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes techdrm-spin {
    to {
        transform: rotate(360deg);
    }
}

.techdrm-modal-title {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.techdrm-modal-text {
    color: #94A3B8;
    font-size: 0.875rem;
    margin: 0;
}

/* Animacao de progresso */
.techdrm-progress-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 2px;
}

.techdrm-progress-dots span {
    width: 4px;
    height: 4px;
    background: #94A3B8;
    border-radius: 50%;
    animation: techdrm-dot 1.4s infinite ease-in-out;
}

.techdrm-progress-dots span:nth-child(1) { animation-delay: 0s; }
.techdrm-progress-dots span:nth-child(2) { animation-delay: 0.2s; }
.techdrm-progress-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes techdrm-dot {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}