/* Download Widget Styles */
.adm-download-widget {
    margin: 30px 0;
    padding: 0;
}

.adm-widget-container {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.adm-widget-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.adm-widget-thumbnail {
    flex-shrink: 0;
}

.adm-widget-thumbnail img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.adm-widget-details {
    flex: 1;
}

.adm-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.adm-detail-box {
    background: #f7f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.adm-detail-label {
    display: block;
    font-size: 12px;
    color: #657786;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.adm-detail-value {
    display: block;
    font-size: 16px;
    color: #14171a;
    font-weight: 600;
}

/* Download Section */
.adm-download-section {
    border-top: 1px solid #e1e8ed;
    padding-top: 25px;
}

.adm-countdown-info {
    margin-bottom: 20px;
}

.adm-progress-bar {
    width: 100%;
    height: 6px;
    background: #e1e8ed;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.adm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1da1f2 0%, #0d8bd9 100%);
    width: 0%;
    transition: width 1s linear;
    border-radius: 3px;
}

.adm-countdown-text {
    text-align: center;
    color: #657786;
    margin: 0;
    font-size: 14px;
}

.adm-countdown-text strong {
    color: #1da1f2;
}

/* Download Buttons */
.adm-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
}

.adm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.adm-btn-chrome {
    background: #4285f4;
    color: #fff;
}

.adm-btn-chrome:hover:not(:disabled) {
    background: #3275e4;
}

.adm-btn-edge {
    background: #0078d4;
    color: #fff;
}

.adm-btn-edge:hover:not(:disabled) {
    background: #006bc2;
}

.adm-btn-active {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.adm-btn svg {
    width: 20px;
    height: 20px;
}

.adm-no-downloads {
    text-align: center;
    padding: 30px;
    background: #fff8dc;
    border: 1px solid #ffd700;
    border-radius: 6px;
    color: #856404;
}

/* Download Box for Shortcode */
.adm-download-box {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.adm-box-container h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #14171a;
}

.adm-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.adm-thumbnail {
    flex-shrink: 0;
}

.adm-thumbnail img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.adm-details {
    flex: 1;
}

.adm-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.adm-detail-row:last-child {
    margin-bottom: 0;
}

.adm-detail-item {
    background: #f7f9fa;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.adm-label {
    display: block;
    font-size: 11px;
    color: #657786;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.adm-value {
    display: block;
    font-size: 15px;
    color: #14171a;
    font-weight: 600;
}

.adm-download-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #1da1f2;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.adm-download-btn:hover {
    background: #0d8bd9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .adm-widget-content {
        flex-direction: column;
    }
    
    .adm-widget-thumbnail img {
        width: 100%;
        height: auto;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .adm-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .adm-content {
        flex-direction: column;
    }
    
    .adm-thumbnail img {
        width: 100%;
        height: auto;
    }
    
    .adm-detail-row {
        grid-template-columns: 1fr;
    }
    
    .adm-btn {
        font-size: 14px;
        padding: 14px 18px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .adm-widget-container {
        background: #15202b;
        border-color: #38444d;
    }
    
    .adm-detail-box {
        background: #192734;
        border-color: #38444d;
    }
    
    .adm-detail-value {
        color: #fff;
    }
    
    .adm-progress-bar {
        background: #38444d;
    }
}