/* ==========================================================================
   Papillon Media Center - Frontend Styles v1.3.5
   ========================================================================== */

/* Old Standard TT — self-hosted font */
@font-face {
    font-family: 'Old Standard TT';
    src: url('../fonts/OldStandardTT-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Old Standard TT';
    src: url('../fonts/OldStandardTT-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Old Standard TT';
    src: url('../fonts/OldStandardTT-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

.pmc-media-center {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

/* Category Section */
.pmc-category-section {
    margin-bottom: 50px;
}

/* Category Header */
.pmc-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    margin-bottom: 0;
}

.pmc-category-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
    color: #2b3e51 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    line-height: 1.4 !important;
}

.pmc-category-label {
    font-size: 12px;
    color: #c5786e;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    font-family: 'Old Standard TT', serif;
}

/* Download Items List */
.pmc-downloads-list {
    border-left: 2px solid #ddd;
    border-right: 2px solid #ddd;
}

/* ==========================================================================
   Download Item — 2-row layout
   Row 1: Thumbnail + Title/Description
   Row 2: Buttons (full width, aligned after thumbnail)
   ========================================================================== */

.pmc-download-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto;
    gap: 0 25px;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.pmc-download-item:last-child {
    border-bottom: 2px solid #ddd;
}

/* Alternating row colors */
.pmc-row-white {
    background-color: #ffffff;
}

.pmc-row-grey {
    background-color: #e8e8e8;
}

/* Thumbnail — spans row 1 only */
.pmc-download-thumb {
    grid-column: 1;
    grid-row: 1;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    align-self: start;
}

.pmc-download-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pmc-no-thumb {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 40px;
}

/* Download Info — row 1, column 2 */
.pmc-download-info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-self: center;
}

.pmc-download-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #cbbba0 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.pmc-download-desc {
    font-size: 13px;
    color: #555;
    margin: 0 0 6px 0;
    line-height: 1.5;
    font-family: 'Old Standard TT', serif;
}

.pmc-file-types {
    font-size: 12px;
    color: #888;
    font-style: italic;
    font-family: 'Old Standard TT', serif;
}

/* Download Buttons — row 2, spans both columns (aligned under info) */
.pmc-download-buttons {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 12px;
}

.pmc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background-color: #cdb18c;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Old Standard TT', serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    white-space: nowrap;
}

.pmc-download-btn:hover {
    background-color: #b89a76;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

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

/* Video icon in buttons */
.pmc-btn-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
}

.pmc-icon-video::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 2v12h16V6H4zm5 2l6 4-6 4V8z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 2v12h16V6H4zm5 2l6 4-6 4V8z'/%3E%3C/svg%3E") center / contain no-repeat;
    vertical-align: middle;
}

/* No content */
.pmc-no-content {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 16px;
}

/* Category spacing */
.pmc-category-section + .pmc-category-section {
    margin-top: 40px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 768px) {
    .pmc-download-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 0 15px;
        padding: 15px;
    }

    .pmc-download-thumb {
        grid-column: 1;
        grid-row: 1;
        width: 80px;
        height: 80px;
    }

    .pmc-download-info {
        grid-column: 2;
        grid-row: 1;
    }

    .pmc-download-buttons {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 10px;
    }

    .pmc-download-btn {
        padding: 8px 14px;
        font-size: 11px;
        white-space: normal;
        word-break: break-word;
        text-align: center;
    }

    .pmc-category-header {
        padding: 10px 15px;
    }

    .pmc-category-title {
        font-size: 14px !important;
    }
}

@media screen and (max-width: 480px) {
    .pmc-download-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .pmc-download-thumb {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 10px;
    }

    .pmc-download-info {
        grid-column: 1;
        grid-row: 2;
    }

    .pmc-download-buttons {
        grid-column: 1;
        grid-row: 3;
        flex-direction: column;
    }

    .pmc-download-btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        word-break: break-word;
        text-align: center;
    }
}
