/**
 * WP Download Vault - Frontend Styles
 */

/* ==========================================================================
   Buttons
   ========================================================================== */
.dlv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff !important;
    background-color: #2563eb;
    border: none;
    border-radius: 8px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.dlv-btn:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.dlv-btn:active {
    transform: translateY(0);
}

.dlv-btn-icon {
    display: inline-flex;
    font-size: 16px;
}

/* ==========================================================================
   Download Card / Box
   ========================================================================== */
.dlv-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}

.dlv-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    border-color: #d1d5db;
}

.dlv-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.dlv-card-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dlv-card-title-group {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dlv-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.dlv-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.4;
}

.dlv-badge-version {
    background: #e0f2fe;
    color: #0369a1;
}

.dlv-badge-locked {
    background: #fee2e2;
    color: #b91c1c;
}

.dlv-card-desc {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.dlv-card-desc p {
    margin: 0 0 8px 0;
}

.dlv-card-desc p:last-child {
    margin-bottom: 0;
}

.dlv-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.dlv-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #6b7280;
}

.dlv-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Interactive Password Modal
   ========================================================================== */
.dlv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: dlvFadeIn 0.2s ease-out;
}

.dlv-modal-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    padding: 32px;
    position: relative;
    text-align: center;
    animation: dlvSlideUp 0.2s ease-out;
}

.dlv-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.dlv-modal-close:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.dlv-modal-icon {
    width: 52px;
    height: 52px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.dlv-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.dlv-modal-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
    line-height: 1.5;
}

.dlv-modal-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: left;
}

.dlv-modal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    margin-bottom: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dlv-modal-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dlv-modal-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.dlv-modal-btn:hover {
    background: #1d4ed8;
}

.dlv-modal-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

@keyframes dlvFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dlvSlideUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
