/**
 * PDF Manager Pro - Frontend CSS
 * Professional dark download box
 */

.pmp-download-box {
    margin: 25px 0;
    background-color: #2b2b2b;
    border-radius: 8px;
    overflow: hidden;
}

.pmp-box-inner {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    gap: 25px;
}

/* Icon Section */
.pmp-icon-wrap {
    flex-shrink: 0;
}

.pmp-icon {
    width: 56px;
    height: 56px;
    background-color: #e53935;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmp-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.pmp-icon svg path {
    stroke: currentColor;
}

/* Content Section */
.pmp-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pmp-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.pmp-count {
    font-size: 13px;
    color: #a0a0a0;
}

/* Action Section */
.pmp-action {
    flex-shrink: 0;
}

.pmp-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #e53935;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pmp-download-btn:hover {
    background-color: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

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

.pmp-download-btn svg {
    width: 18px;
    height: 18px;
}

.pmp-download-btn svg path {
    stroke: currentColor;
}

/* Error Message */
.pmp-error {
    color: #d63638;
    padding: 15px;
    background: #ffeded;
    border-left: 4px solid #d63638;
    margin: 20px 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .pmp-box-inner {
        flex-wrap: wrap;
        padding: 20px;
        gap: 15px;
    }
    
    .pmp-icon-wrap {
        order: 1;
    }
    
    .pmp-icon {
        width: 48px;
        height: 48px;
    }
    
    .pmp-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .pmp-content {
        order: 2;
        flex: 1;
        min-width: calc(100% - 70px);
    }
    
    .pmp-title {
        font-size: 16px;
    }
    
    .pmp-action {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .pmp-download-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

@media screen and (max-width: 480px) {
    .pmp-download-box {
        margin: 20px 0;
        border-radius: 6px;
    }
    
    .pmp-box-inner {
        padding: 15px;
        gap: 12px;
    }
    
    .pmp-icon {
        width: 44px;
        height: 44px;
        border-radius: 6px;
    }
    
    .pmp-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .pmp-content {
        min-width: calc(100% - 60px);
    }
    
    .pmp-title {
        font-size: 15px;
    }
    
    .pmp-count {
        font-size: 12px;
    }
    
    .pmp-download-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .pmp-download-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Centered Layout */
.pmp-layout-center .pmp-box-inner {
    flex-direction: column;
    text-align: center;
}

.pmp-layout-center .pmp-action {
    width: 100%;
}

.pmp-layout-center .pmp-download-btn {
    width: 100%;
    justify-content: center;
}

/* Custom Icon Support */
.pmp-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Subtitle Styling */
.pmp-subtitle {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.4;
}

/* Hover Effects */
.pmp-hover-lighten .pmp-download-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pmp-hover-scale .pmp-download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.pmp-hover-shadow .pmp-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* RTL Support */
.pmp-download-box[dir="rtl"] .pmp-box-inner {
    flex-direction: row-reverse;
}

.pmp-download-box[dir="rtl"] .pmp-action {
    order: -1;
}

.pmp-download-box[dir="rtl"] .pmp-icon-wrap {
    order: 1;
}

.pmp-download-box[dir="rtl"] .pmp-content {
    order: 2;
    text-align: right;
}

.pmp-download-box[dir="rtl"] .pmp-download-btn svg:first-child {
    order: 2;
}

.pmp-download-box[dir="rtl"] .pmp-download-btn span {
    order: 1;
}

/* High contrast */
@media (prefers-contrast: high) {
    .pmp-download-box {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pmp-download-btn {
        transition: none;
    }
    
    .pmp-download-btn:hover {
        transform: none;
    }
}
