/* Portal List Styles */
.main-content { margin-top: 10px; padding: 10px 0; }
.content-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; overflow: hidden; transition: 0.3s; height: 100%; display: flex; flex-direction: column; }
.content-card:hover { transform: translateY(-5px); border-color: #ff416c; box-shadow: 0 10px 30px rgba(255, 65, 108, 0.2); }
.content-img { width: 100%; height: 180px; object-fit: cover; }
.content-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.content-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: #fff; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.content-date { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: auto; }
.content-views { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 5px; }
a { text-decoration: none; color: inherit; }
a:hover { color: #ff416c; }
.pagination .page-link { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #fff; border-radius: 8px; margin: 0 4px; }
.pagination .page-item.active .page-link { background: #ff416c; border-color: #ff416c; }
.pagination .page-link:hover { background: rgba(255,65,108,0.2); color: #fff; }

/* Video Card Special */
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.content-card:hover .video-overlay { opacity: 1; }

@media (max-width: 767px) {
    .main-content { margin-top: 70px; padding: 20px 0; }
    .content-img { height: 140px; }
    .content-title { font-size: 0.85rem; }
}

/* Portal Container Styles */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
.portal-container, .portal-media-wrapper, .portal-media-inner { max-width: 100%; }
.portal-container { 
    max-width: 900px; 
    margin: 40px auto 50px auto; 
    background: #161625 !important; 
    border: 1px solid rgba(255,255,255,0.08) !important; 
    border-radius: 24px; 
    padding: 40px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); 
    backdrop-filter: blur(10px); 
    color: #d1d1d1 !important;
}
.back-link { color: #4e9af1; text-decoration: none; font-weight: 600; margin-bottom: 30px; display: inline-flex; align-items: center; transition: 0.3s; }
.back-link:hover { color: #fff; transform: translateX(-5px); }
.portal-media-wrapper { position: relative; width: 100%; height: auto; min-height: 350px; margin-bottom: 35px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.6); }
.portal-media-inner { position: relative; width: 100%; }
.portal-content-img { display: block; width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 20px; }
.portal-media-wrapper .ratio { width: 100%; border-radius: 20px; overflow: hidden; }
.portal-media-inner iframe, .portal-media-inner video, .portal-media-inner embed, .portal-media-inner object { display: block; max-width: 100%; width: 100%; }
.portal-media-inner img { display: block; max-width: 100%; width: 100%; height: auto; }
.ratio iframe, .ratio video, .ratio embed, .ratio object { height: 100%; }
.portal-h1-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%); color: #fff; padding: 60px 30px 30px; font-weight: 800; line-height: 1.3; font-size: 2.5rem; z-index: 20; margin: 0; }
.portal-h1 { font-weight: 800; color: #fff !important; margin-bottom: 25px; line-height: 1.3; font-size: 2.5rem; }
.meta-info { font-size: 0.95rem; color: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 25px; margin-bottom: 35px; }
.meta-item { display: flex; align-items: center; gap: 8px; }
.main-text { font-size: 1.2rem; line-height: 1.9; color: #d1d1d1 !important; }
.main-text p { margin-bottom: 1.8rem; }
.main-text strong { color: #ffffff !important; }
.poem-text {
    font-family: 'Arial', sans-serif;
    font-style: normal;
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
    white-space: pre-line;
    color: #f5f5f5;
    max-width: 600px;
    margin: 0 auto;
}
.badge-type { background: rgba(78, 154, 241, 0.1); color: #4e9af1; padding: 5px 15px; border-radius: 50px; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }

@media (max-width: 767px) {
    .portal-container { margin-top: 20px; padding: 20px; box-sizing: border-box; }
    .portal-h1 { font-size: 1.8rem; }
    .portal-h1-overlay { font-size: 1.5rem; padding: 40px 20px 20px; }
    .portal-media-wrapper { min-height: auto; margin-bottom: 25px; }
    .portal-media-inner { min-height: auto; }
    .portal-content-img { max-height: none; }
    .main-text { overflow-wrap: anywhere; word-break: break-word; }
    .main-text img, .main-text iframe, .main-text video, .main-text table, .main-text embed, .main-text object { display: block; max-width: 100%; width: 100%; height: auto; }
    .main-text table { display: block; width: 100%; overflow-x: auto; }
}

/* Global UI Fixes for Standalone Pages (Always enable vertical scrolling) */
html {
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
}
body {
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    background-color: #0f0f1a !important;
    color: #fff;
}
.pointer { cursor: pointer; }

/* Portal detail page reaction row */
.emre-reactions-container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-width: 0; }

/* Radio Player Title Styles (Fixed) */
.radio-info-text {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 250px;
    white-space: nowrap;
}

.radio-title-scroll {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .radio-info-text { max-width: 150px; }
    .radio-title-scroll { font-size: 0.85rem; }
}

/* Legal Page Unified Styles (Dark Theme) */
.legal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
    color: white !important;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 40px;
}
.legal-alert-info { background: rgba(78, 154, 241, 0.1); border: 1px solid rgba(78, 154, 241, 0.2); color: #4e9af1; border-radius: 12px; }
.legal-input, .legal-textarea { background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(255,255,255,0.1) !important; color: #fff !important; border-radius: 12px !important; padding: 12px !important; transition: all 0.3s ease; }
.legal-input:focus, .legal-textarea:focus { border-color: #4e9af1 !important; box-shadow: 0 0 10px rgba(78, 154, 241, 0.2) !important; outline: none; }
.legal-invalid { border-color: #ff416c !important; box-shadow: 0 0 10px rgba(255, 65, 108, 0.2) !important; }
.legal-btn-premium { background: linear-gradient(45deg, #ff416c, #ff4b2b); border: none; border-radius: 15px; height: 60px; color: #fff; font-weight: 700; transition: 0.3s; }
.legal-btn-premium:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3); color: #fff; }
.legal-box { 
    background: #0f0f1a !important; 
    border-radius: 15px; 
    border: 1px solid rgba(255,255,255,0.05) !important; 
    padding: 25px; 
    color: #d1d1d1 !important;
}
.legal-border-top { border-top: 1px solid rgba(255,255,255,0.08) !important; }
.legal-map-iframe { filter: invert(90%) hue-rotate(180deg); border: 0; width: 100%; height: 100%; }

.legal-table { 
    background: transparent !important; 
    color: #d1d1d1 !important;
}
.legal-table th { 
    background: rgba(255,255,255,0.05) !important; 
    color: #ffffff !important; 
    border-color: rgba(255,255,255,0.1) !important;
}
.legal-table td { 
    background: rgba(0,0,0,0.2) !important;
    color: #d1d1d1 !important; 
    border-color: rgba(255,255,255,0.1) !important; 
}

.legal-badge { background: rgba(255, 65, 108, 0.1) !important; border: 1px solid rgba(255, 65, 108, 0.2) !important; color: #ff416c !important; }
.legal-refund-notice { background: rgba(220, 53, 69, 0.1); border: 1px solid rgba(220, 53, 69, 0.2); padding: 25px; border-radius: 15px; margin: 30px 0; }
.legal-refund-notice h4 { color: #ff4d4d; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; }
