/**
 * Download Manager Plugin Style Override
 * Modern design matching the new card grid system
 * This file overrides plugin styles without modifying plugin files
 * Safe from plugin updates
 */

/* ==========================================
   DOWNLOAD MANAGER CARDS - MODERN DESIGN
   ========================================== */

/* Download Card Container */
.w3eden .card,
.w3eden .wpdm-download-link {
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%) !important;
    border: 1px solid rgba(161, 25, 166, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(161, 25, 166, 0.1) inset !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    overflow: hidden !important;
}

.w3eden .card:hover,
.w3eden .wpdm-download-link:hover {
    transform: translateY(-6px) scale(1.005) !important;
    box-shadow: 0 15px 35px rgba(161, 25, 166, 0.18),
                0 0 25px rgba(161, 25, 166, 0.08),
                0 0 0 1px rgba(161, 25, 166, 0.25) inset !important;
    border-color: rgba(161, 25, 166, 0.35) !important;
}

/* Card Header */
.w3eden .card-header {
    background: linear-gradient(135deg, rgba(161, 25, 166, 0.2) 0%, rgba(93, 10, 111, 0.15) 100%) !important;
    border-bottom: 1px solid rgba(161, 25, 166, 0.2) !important;
    padding: 18px 20px !important;
    color: #fff !important;
}

/* Card Body */
.w3eden .card-body {
    padding: 20px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Card Title */
.w3eden .card-title,
.w3eden .wpdm-download-title {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    margin-bottom: 12px !important;
    transition: color 0.3s ease !important;
}

.w3eden .card:hover .card-title,
.w3eden .wpdm-download-link:hover .wpdm-download-title {
    color: var(--house-primary, #c77dff) !important;
    text-shadow: 0 0 15px rgba(161, 25, 166, 0.3) !important;
}

/* Download Buttons */
.w3eden .btn,
.w3eden .wpdm-download-button,
.w3eden a.wpdm-download-link.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    background: linear-gradient(135deg, var(--house-primary, #a119a6) 0%, var(--house-secondary, #5d0a6f) 100%) !important;
    border: 2px solid var(--house-primary, #a119a6) !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(161, 25, 166, 0.3) !important;
}

.w3eden .btn:hover,
.w3eden .wpdm-download-button:hover,
.w3eden a.wpdm-download-link.btn:hover {
    background: linear-gradient(135deg, var(--house-secondary, #5d0a6f) 0%, var(--house-primary, #a119a6) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(161, 25, 166, 0.3) !important;
    color: #fff !important;
}

/* Secondary Buttons */
.w3eden .btn-secondary,
.w3eden .btn-outline-primary {
    background: linear-gradient(145deg, rgba(161, 25, 166, 0.15) 0%, rgba(93, 10, 111, 0.1) 100%) !important;
    border-color: rgba(161, 25, 166, 0.3) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.w3eden .btn-secondary:hover,
.w3eden .btn-outline-primary:hover {
    background: linear-gradient(135deg, rgba(161, 25, 166, 0.3) 0%, rgba(93, 10, 111, 0.2) 100%) !important;
    border-color: rgba(161, 25, 166, 0.5) !important;
}

/* Download Meta Info */
.w3eden .wpdm-download-meta,
.w3eden .card-footer {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 15px 20px !important;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.5) 0%, rgba(15, 15, 25, 0.8) 100%) !important;
    border-top: 1px solid rgba(161, 25, 166, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.875rem !important;
}

/* Meta Badges */
.w3eden .wpdm-download-meta span,
.w3eden .badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: rgba(161, 25, 166, 0.1) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(161, 25, 166, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
}

.w3eden .wpdm-download-meta span:hover,
.w3eden .badge:hover {
    background: rgba(161, 25, 166, 0.2) !important;
    border-color: rgba(161, 25, 166, 0.4) !important;
    color: #fff !important;
}

/* Download Icons */
.w3eden .wpdm-download-meta i,
.w3eden .badge i,
.w3eden .btn i {
    opacity: 0.85 !important;
    font-size: 0.875rem !important;
}

/* Download Description */
.w3eden .wpdm-download-description,
.w3eden .card-text {
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

/* Download List/Grid */
.w3eden .wpdm-download-list,
.w3eden .wpdm-download-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin: 40px 0 !important;
}

/* Form Elements */
.w3eden input[type="text"],
.w3eden input[type="email"],
.w3eden input[type="password"],
.w3eden textarea,
.w3eden select {
    background: rgba(25, 25, 35, 0.6) !important;
    border: 1px solid rgba(161, 25, 166, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease !important;
}

.w3eden input[type="text"]:focus,
.w3eden input[type="email"]:focus,
.w3eden input[type="password"]:focus,
.w3eden textarea:focus,
.w3eden select:focus {
    border-color: rgba(161, 25, 166, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(161, 25, 166, 0.1) !important;
    outline: none !important;
}

/* Pagination */
.w3eden .pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 50px 0 40px 0 !important;
}

.w3eden .pagination .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 45px !important;
    height: 45px !important;
    padding: 0 15px !important;
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.6) 0%, rgba(15, 15, 25, 0.8) 100%) !important;
    border: 1px solid rgba(161, 25, 166, 0.2) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.w3eden .pagination .page-link:hover {
    background: linear-gradient(145deg, rgba(161, 25, 166, 0.3) 0%, rgba(93, 10, 111, 0.4) 100%) !important;
    border-color: rgba(161, 25, 166, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(161, 25, 166, 0.3) !important;
}

.w3eden .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--house-primary, #a119a6) 0%, var(--house-secondary, #5d0a6f) 100%) !important;
    border-color: var(--house-primary, #a119a6) !important;
    box-shadow: 0 4px 15px rgba(161, 25, 166, 0.4) !important;
}

/* Tables */
.w3eden table {
    background: rgba(25, 25, 35, 0.6) !important;
    border: 1px solid rgba(161, 25, 166, 0.15) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.w3eden table thead {
    background: linear-gradient(135deg, rgba(161, 25, 166, 0.2) 0%, rgba(93, 10, 111, 0.15) 100%) !important;
}

.w3eden table th {
    color: #fff !important;
    font-weight: 700 !important;
    padding: 15px !important;
    border-bottom: 1px solid rgba(161, 25, 166, 0.2) !important;
}

.w3eden table td {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid rgba(161, 25, 166, 0.1) !important;
}

.w3eden table tr:hover {
    background: rgba(161, 25, 166, 0.05) !important;
}

/* Alerts/Messages */
.w3eden .alert {
    border-radius: 12px !important;
    border: 1px solid rgba(161, 25, 166, 0.2) !important;
    padding: 15px 20px !important;
    backdrop-filter: blur(10px) !important;
}

.w3eden .alert-success {
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.15) 0%, rgba(34, 139, 58, 0.1) 100%) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
    color: #a8e6b7 !important;
}

.w3eden .alert-danger {
    background: linear-gradient(145deg, rgba(220, 53, 69, 0.15) 0%, rgba(200, 35, 51, 0.1) 100%) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    color: #f5c2c7 !important;
}

.w3eden .alert-info {
    background: linear-gradient(145deg, rgba(13, 202, 240, 0.15) 0%, rgba(11, 172, 204, 0.1) 100%) !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    color: #b6effb !important;
}

/* List Groups */
.w3eden .list-group {
    padding: 0 !important;
    width: 100%;
}

.w3eden .list-group-item {
    background: rgba(25, 25, 35, 0.6) !important;
    border: 1px solid rgba(161, 25, 166, 0.15) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.3s ease !important;
}

.w3eden .list-group-item:hover {
    background: rgba(161, 25, 166, 0.1) !important;
    border-color: rgba(161, 25, 166, 0.3) !important;
}

/* Navigation Tabs */
.w3eden .nav-tabs {
    border-bottom: 2px solid rgba(161, 25, 166, 0.2) !important;
}

.w3eden .nav-tabs .nav-link {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease !important;
    border-bottom: 3px solid transparent !important;
}

.w3eden .nav-tabs .nav-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(161, 25, 166, 0.5) !important;
}

.w3eden .nav-tabs .nav-item.show .nav-link,
.w3eden .nav-tabs .nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--house-primary, #a119a6) !important;
    font-size: 1rem;
}

/* Links */
.w3eden a {
    color: var(--house-primary, #c77dff) !important;
    transition: color 0.3s ease !important;
}

.w3eden a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Special Template Styles */
.w3eden .link-template-default.card .btn {
    background: linear-gradient(135deg, rgba(161, 25, 166, 0.3) 0%, rgba(93, 10, 111, 0.2) 100%) !important;
    border-color: rgba(161, 25, 166, 0.4) !important;
}

.w3eden .link-template-default.card .btn:hover {
    background: linear-gradient(135deg, var(--house-primary, #a119a6) 0%, var(--house-secondary, #5d0a6f) 100%) !important;
}

/* Download Button Minimum Width */
.wpdm-download-link.btn.btn-primary {
    min-width: 100px !important;
}

/* Hide Thumbnails in Page Template */
.wpdm-page-template .wpdm-thumb {
    display: none !important;
}

/* Modal/Dialog */
.w3eden .modal-content {
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.98) 0%, rgba(15, 15, 25, 0.95) 100%) !important;
    border: 1px solid rgba(161, 25, 166, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

.w3eden .modal-header {
    background: linear-gradient(135deg, rgba(161, 25, 166, 0.2) 0%, rgba(93, 10, 111, 0.15) 100%) !important;
    border-bottom: 1px solid rgba(161, 25, 166, 0.2) !important;
    color: #fff !important;
}

.w3eden .modal-body {
    color: rgba(255, 255, 255, 0.85) !important;
}

.w3eden .modal-footer {
    border-top: 1px solid rgba(161, 25, 166, 0.2) !important;
}

/* Badges */
.w3eden .badge-primary {
    background: linear-gradient(135deg, var(--house-primary, #a119a6) 0%, var(--house-secondary, #5d0a6f) 100%) !important;
}

.w3eden .badge-secondary {
    background: rgba(161, 25, 166, 0.2) !important;
    border: 1px solid rgba(161, 25, 166, 0.3) !important;
}

/* Progress Bars */
.w3eden .progress {
    background: rgba(25, 25, 35, 0.6) !important;
    border-radius: 50px !important;
    overflow: hidden !important;
}

.w3eden .progress-bar {
    background: linear-gradient(90deg, var(--house-primary, #a119a6) 0%, var(--house-secondary, #5d0a6f) 100%) !important;
}

/* Dropdowns */
.w3eden .dropdown-menu {
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.98) 0%, rgba(15, 15, 25, 0.95) 100%) !important;
    border: 1px solid rgba(161, 25, 166, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

.w3eden .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.3s ease !important;
}

.w3eden .dropdown-item:hover {
    background: rgba(161, 25, 166, 0.2) !important;
    color: #fff !important;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .w3eden .wpdm-download-list,
    .w3eden .wpdm-download-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .w3eden .wpdm-download-list,
    .w3eden .wpdm-download-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .w3eden .btn,
    .w3eden .wpdm-download-button {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .w3eden .card-header,
    .w3eden .card-body,
    .w3eden .card-footer {
        padding: 15px !important;
    }
}
