.dwone-downloads-grid {
display: grid;
grid-template-columns: repeat(var(--columns, 3), 1fr);
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.dwone-download-card {
position: relative;
border-radius: 12px;
overflow: hidden;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
aspect-ratio: 16/10;
}
.dwone-download-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.dwone-download-background {
position: relative;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: flex;
align-items: flex-end;
}
.dwone-download-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(220, 38, 38, 0.85) 0%, rgba(185, 28, 28, 0.9) 100%);
opacity: 0.9;
}
.dwone-download-content {
position: relative;
z-index: 2;
padding: 1.5rem;
color: white;
width: 100%;
}
.dwone-download-icon {
display: flex;
align-items: center;
margin-bottom: 0.75rem;
opacity: 0.9;
}
.dwone-download-icon svg {
margin-right: 0.5rem;
}
.dwone-download-title {
font-size: 1.25rem;
font-weight: 600;
margin: 0 0 0.5rem 0;
line-height: 1.3;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.dwone-download-categories {
margin-bottom: 0.5rem;
}
.dwone-download-category {
display: inline-block;
font-size: 0.875rem;
opacity: 0.8;
background: rgba(255, 255, 255, 0.2);
padding: 0.25rem 0.75rem;
border-radius: 20px;
backdrop-filter: blur(10px);
margin-right: 0.5rem;
margin-bottom: 0.25rem;
}
.dwone-download-tags {
margin-top: 0.5rem;
}
.dwone-download-tag {
display: inline-block;
font-size: 0.75rem;
opacity: 0.7;
background: rgba(255, 255, 255, 0.15);
padding: 0.2rem 0.6rem;
border-radius: 15px;
backdrop-filter: blur(10px);
margin-right: 0.4rem;
margin-bottom: 0.2rem;
} .dwone-download-modal {
display: none;
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px);
}
.dwone-download-modal-content {
position: relative;
background-color: white;
margin: 5% auto;
padding: 0;
border-radius: 12px;
width: 90%;
max-width: 500px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-50px) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.dwone-download-modal-close {
position: absolute;
right: 1rem;
top: 1rem;
color: #666;
font-size: 2rem;
font-weight: bold;
cursor: pointer;
z-index: 10;
transition: color 0.2s ease;
}
.dwone-download-modal-close:hover {
color: #333;
}
.dwone-download-modal-body {
padding: 2rem;
}
.dwone-download-modal-body h2 {
margin: 0 0 1rem 0;
color: #333;
font-size: 1.5rem;
}
.dwone-download-modal-body p {
margin: 0 0 2rem 0;
color: #666;
line-height: 1.6;
}
.dwone-download-modal-actions {
display: flex;
gap: 1rem;
justify-content: flex-end;
}
.dwone-download-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
color: white;
padding: 0.75rem 1.5rem;
border-radius: 8px;
text-decoration: none;
font-weight: 500;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}
.dwone-download-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
color: white;
text-decoration: none;
} @media (max-width: 768px) {
.dwone-downloads-grid {
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
padding: 1rem;
}
.dwone-download-content {
padding: 1rem;
}
.dwone-download-title {
font-size: 1.1rem;
}
.dwone-download-modal-content {
margin: 10% auto;
width: 95%;
}
.dwone-download-modal-body {
padding: 1.5rem;
}
}
@media (max-width: 480px) {
.dwone-downloads-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.dwone-download-card {
aspect-ratio: 16/9;
}
.dwone-download-modal-actions {
flex-direction: column;
}
.dwone-download-btn {
justify-content: center;
}
} .dwone-download-card.loading {
pointer-events: none;
opacity: 0.7;
}
.dwone-download-card.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
margin: -10px 0 0 -10px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top: 2px solid white;
border-radius: 50%;
animation: spin 1s linear infinite;
z-index: 3;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
} .dwone-download-card:focus {
outline: 2px solid #dc2626;
outline-offset: 2px;
}
.dwone-download-modal:focus-within {
outline: none;
} @media print {
.dwone-download-modal {
display: none !important;
}
}