/* PDF Download Gate - Styles */

.pdg-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 0px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.0);
    width: 100%;
    margin: 20px auto;
    height: 200px;
    position: relative;
    cursor: pointer;
}

.pdg-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.pdg-card-thumbnail {
    position: relative;
    background: #eeeeee;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    aspect-ratio: 1/1.3;
}

.pdg-card-thumbnail img.pdg-thumbnail-image {
    max-height: 100%;
    max-width: 100%;
    display: block;
    width: auto;
    height: auto;
    filter:drop-shadow(5px 10px 5px);
}

.pdg-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdg-filesize {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #4e4e4e;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 0px;
    font-size: 12px;
    font-weight: 600;
}

.pdg-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.pdg-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    line-height: 1.4;
}

.pdg-card-description {
    margin: 0;
    font-size: 14px;
    color: #757575;
    line-height: 1.4;
}

.pdg-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #46bb00;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 0px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    width: 100%;;
    transition: background-color 0.2s ease;
}

.pdg-download-btn:hover {
    background: #46bb00cc;
    transform: scale(1);
}

.pdg-download-btn:active {
    transform: scale(1);
}

.pdg-icon {
    font-size: 20px;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdg-card {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .pdg-card-thumbnail {
        min-height: 150px;
        padding: 20px;
    }
    
    .pdg-card-content {
        padding: 20px;
    }
    
    .pdg-card-title {
        font-size: 18px;
    }
    
    .pdg-download-btn {
        width: 100%;
    }
}

/* Grid Layout für mehrere Cards */
.pdg-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.pdg-card-grid .pdg-card {
    margin: 0;
    max-width: none;
}

@media (max-width: 768px) {
    .pdg-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Loading State */
.pdg-download-btn.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.pdg-download-btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pdg-spin 0.6s linear infinite;
}

@keyframes pdg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Loading State Anpassungen === */

.kaliform-loading .kaliform-loader-container {
    /* backdrop-filter: blur(4px); */
}

/* Spinner Style */
.kaliform-loader {
    width: 50px !important;
    height: 50px !important;
    border: 3px solid #e5e7eb !important;
    border-top-color: #46bb00 !important;
    border-radius: 50% !important;
    animation: pdg-spin 0.8s linear infinite !important;
}

.kaliform-loader div {
    display: none !important;
}

@keyframes pdg-spin {
    to {
        transform: rotate(360deg);
    }
}
