/* portal-style.css */

/* Responsive Logo Header */
.portal-header {
    background: var(--white);
    padding: 15px 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.portal-logo {
    max-height: 60px;
    width: auto;
}
@media (max-width: 600px) { .portal-logo { max-height: 40px; } }

/* Matrix Grid */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Flipbook Cards */
.fb-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--pistachio-dark);
    display: flex;
    flex-direction: column;
}
.fb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.fb-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.fb-content { padding: 15px; flex-grow: 1; }
.fb-title { font-size: 1.1rem; font-weight: bold; color: var(--eb-dark); margin: 0 0 5px 0; }
.fb-desc { font-size: 0.85rem; color: #666; margin-bottom: 15px; }

/* Status Badges */
.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase;}
.badge-public { background: #e6f4ea; color: #1e8e3e; }
.badge-restricted { background: #fef7e0; color: #b06000; }
.badge-inactive { background: #fce8e6; color: #c0392b; }

/* Drag & Drop Zone */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}
.drop-zone.dragover { border-color: var(--pistachio-dark); background: #f0fdf4; }
.drop-zone input[type="file"] { display: none; }

/* Glass Loader & Modals */
.glass-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none; justify-content: center; align-items: center;
    z-index: 9999;
}
.spinner-icon {
    width: 64px; height: 64px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.glass-modal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    padding: 30px;
    width: 90%; max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}