
/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: 1fr 300px;
}

.modal-main {
    padding: 0;
}

.modal-header {
    padding: 25px 30px 0 30px;
    border-bottom: none;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1001;
}

.modal-category {
    color: #d4691f;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.close {
    position: absolute;
    right: 25px;
    top: 25px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1002;
}

.close:hover {
    color: #d4691f;
    background: #f5f5f5;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
}

.modal-body {
    padding: 0 30px 30px 30px;
}

.modal-body h3 {
    color: #444;
    margin-top: 25px;
    margin-bottom: 15px;
}

.modal-body p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-body ul {
    color: #444;
    line-height: 1.7;
    margin-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

/* ========== AD STYLES ========== */
.modal-sidebar {
    display:none;   /*hide sidebar ads for now */
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    padding: 25px 20px;
    position: sticky;
    top: 0;
    height: fit-content;
}

.ad-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.ad-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.banner-ad {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.banner-ad:hover {
    transform: scale(1.02);
}

.banner-ad h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.banner-ad p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.text-ad {
    background: #fff2e6;
    border: 1px solid #d4691f;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
}

.text-ad h5 {
    color: #d4691f;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.text-ad p {
    color: #666;
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.text-ad a {
    color: #d4691f;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.text-ad a:hover {
    text-decoration: underline;
}

/* In-content Ad Styles */
.in-content-ad {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
}

.in-content-banner {
    width: 100%;
    height: 120px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.highlight-box {
    background: #fff2e6;
    border: 1px solid #d4691f;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.highlight-box h4 {
    color: #d4691f;
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-width: 95%;
    }
    
    .modal-sidebar {
        border-left: none;
        border-top: 1px solid #e9ecef;
        order: 2;
    }
    
    .close {
        right: 25px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header, .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-title {
        font-size: 1.5em;
    }
}
