/**
 * Ahikoza Press - Frontend Styles
 *
 * @package Ahikoza_Press
 * @author Anant Verma <anant@codemap.in>
 * @copyright 2025 Codemap. All rights reserved.
 * @license Proprietary - Licensed exclusively to Ahikoza.
 *          This software may not be copied, modified, distributed,
 *          or used without explicit permission from Codemap.
 */

/* =============================================
   Press Section
   ============================================= */
.ahikoza-press-section {
    padding: 40px 0 60px;
}

.container-max {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.press-heading {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

/* Press Grid */
.press-holder {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.press-box {
    background: white;
    border:1px solid #efefef;
    overflow: hidden;

}

.press-box a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.press-mask {
    padding: 0;
}

.press-img {
    background: #fbfbfb;
    width: 100%;
    height: 288px;
    overflow: hidden;
}

.press-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.press-subtitle {
    padding: 15px 20px 5px;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.press-title {
    padding: 0 20px 20px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

.no-press-found {
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
}

/* =============================================
   Custom Modal
   ============================================= */
.ahikoza-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.ahikoza-modal.is-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.ahikoza-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.ahikoza-modal-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    height: 95vh !important;
    overflow-y: scroll;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 2;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ahikoza-modal-container::-webkit-scrollbar {
    display: none;
}

.ahikoza-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.ahikoza-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.ahikoza-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.ahikoza-modal-close:hover {
    color: #333;
    background: #f5f5f5;
}

.ahikoza-modal-body {
    padding: 0;
}


/* Modal Content Styles */
.press-img-holder,
.collab-img-holder {
    width: 100%;
}

.press-img-holder img,
.collab-img-holder img {
    margin: auto;
    width: 70%;
    height: auto;
    display: block;
}

.press-detail-subtitle {
    padding: 20px 25px 10px;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-collab-content {
    padding: 10px 25px 25px;
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
}

.modal-collab-content p {
    margin-bottom: 15px;
}

.modal-collab-content a {
    color: #0066cc;
}

.publisher-logo-holder {
    text-align: center;
    padding: 20px 0;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.publisher-logo-holder img {
    margin: 0px;
    width: 185px;
    padding: 0px;
}

.ahikoza-press-loading {
    padding: 40px;
    text-align: center;
    color: #666;
}

.ahikoza-error {
    padding: 20px 25px;
    color: #c00;
}

/* Share Buttons */
.ahikoza-share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.ahikoza-share-buttons .share-label {
    font-size: 13px;
    color: #999;
    margin-right: 5px;
}

.ahikoza-share-buttons .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.ahikoza-share-buttons .share-btn:hover {
    background: #666;
    color: #fff;
}

.ahikoza-share-buttons .share-btn svg {
    width: 14px;
    height: 14px;
}


/* =============================================
   Responsive Styles
   ============================================= */
@media (max-width: 768px) {
    .press-heading {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .press-holder {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ahikoza-modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .ahikoza-modal-header {
        padding: 15px 20px;
    }

    .press-detail-subtitle,
    .press-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}
