/* Medyum Guru Astro Portal V2 - Premium Mystic Style */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Quicksand:wght@400;600&display=swap');

:root {
    --mg-gold: #D4AF37;
    --mg-gold-light: #F3E5AB;
    --mg-gold-dark: #aa8c2c;
    --mg-purple: #2E1A47; /* Deep Royal Purple */
    --mg-purple-light: #533575;
    --mg-bg-body: #F9F9FB; /* Very soft gray/white */
    --mg-bg-card: #ffffff;
    --mg-text: #2d2d2d;
    --mg-text-muted: #666;
    --mg-border: #e0e0e0;
    --mg-shadow: 0 10px 30px rgba(46, 26, 71, 0.08);
}

/* Base Wrapper */
.mg-portal-wrapper {
    font-family: 'Quicksand', sans-serif;
    max-width: 1100px;
    margin: 40px auto;
    color: var(--mg-text);
    background: transparent;
}

/* === HEADERS & TYPOGRAPHY === */
.mg-portal-wrapper h1, 
.mg-portal-wrapper h2, 
.mg-portal-wrapper h3 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

/* === MAIN PORTAL CARD === */
.mg-portal-header {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, var(--mg-purple) 0%, #1a0f2e 100%);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(46, 26, 71, 0.25);
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Decorative Shine */
.mg-portal-header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    animation: rotateShine 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateShine { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.mg-portal-icon img {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
    position: relative;
    z-index: 2;
}

.mg-portal-title {
    position: relative;
    z-index: 2;
}

.mg-portal-title h1 {
    margin: 0;
    font-size: 2.2rem;
    background: linear-gradient(to right, #D4AF37, #F3E5AB, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.mg-portal-date {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* === NAVIGATION === */
.mg-portal-nav {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--mg-border);
    gap: 10px;
}

.mg-portal-nav a {
    flex: 1;
    text-align: center;
    padding: 14px;
    color: var(--mg-text-muted);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mg-portal-nav a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--mg-gold-dark);
}

.mg-portal-nav a.active {
    background: linear-gradient(135deg, var(--mg-gold) 0%, var(--mg-gold-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

/* === FILTER BAR (Custom Selects) === */
.mg-portal-filter {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid var(--mg-border);
    box-shadow: var(--mg-shadow);
}

.mg-filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Custom Select Styling */
.mg-select {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 20px;
    background-color: #fcfcfc;
    border: 1px solid var(--mg-border);
    border-radius: 10px;
    color: var(--mg-purple);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.mg-select:hover, .mg-select:focus {
    border-color: var(--mg-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
    background-color: #fff;
}

.mg-btn-show {
    padding: 12px 30px;
    background: var(--mg-purple);
    color: var(--mg-gold);
    border: none;
    border-radius: 10px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(46, 26, 71, 0.2);
}

.mg-btn-show:hover {
    background: var(--mg-gold);
    color: var(--mg-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

/* === MAIN CONTENT (Paper Effect) === */
.mg-portal-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--mg-shadow);
    line-height: 1.9;
    font-size: 1.15rem;
    margin-bottom: 50px;
}

.mg-portal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--mg-gold) 0%, var(--mg-purple) 100%);
    border-radius: 15px 15px 0 0;
}

.mg-portal-content p:first-letter {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    float: left;
    margin-right: 15px;
    margin-top: -10px;
    color: var(--mg-gold);
}

/* === GRIDS & LISTS === */
.mg-related-grid, .mg-burc-grid, .mg-burc-dashboard {
    display: grid;
    gap: 25px;
}

.mg-burc-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.mg-burc-dashboard { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.mg-related-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* CARD STYLES */
.mg-burc-card-simple, 
.mg-burc-card-dashboard,
.mg-related-card,
.mg-other-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: var(--mg-text);
}

.mg-burc-card-simple:hover, 
.mg-burc-card-dashboard:hover,
.mg-related-card:hover,
.mg-other-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(46, 26, 71, 0.1);
    border-color: var(--mg-gold);
}

/* Dashboard Specific */
.mg-burc-dashboard .mg-burc-header {
    border-bottom: 2px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
    display:flex; align-items:center; gap:15px;
}
.mg-burc-dashboard h3 { margin: 0; color: var(--mg-purple); font-size: 1.4rem; } 
.mg-burc-dashboard span { color: var(--mg-text-muted); font-size: 0.9rem; }
.mg-burc-dashboard .mg-summary { color: #555; -webkit-line-clamp: 3; line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

/* Read More Button */
.mg-read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--mg-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}
.mg-read-more:hover {
    background: var(--mg-gold);
    color: #fff;
}

/* Other Signs Grid */
.mg-others-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}
.mg-other-item { text-align: center; }
.mg-other-item img { width: 50px; height: 50px; margin-bottom: 10px; transition: transform 0.3s; }
.mg-other-item:hover img { transform: scale(1.2) rotate(10deg); }

/* Responsive */
@media (max-width: 768px) {
    .mg-portal-header { flex-direction: column; text-align: center; }
    .mg-filter-row { flex-direction: column; }
    .mg-portal-nav { overflow-x: auto; justify-content: flex-start; }
    .mg-portal-list { grid-template-columns: repeat(2, 1fr); }
}
