/* Asymmetric Magazine Grid Theme for 09 Portal */
:root {
  --bg-color: #080808;
  --tile-bg: #121212;
  --accent: #ff6b00; /* Electric Orange */
  --text-main: #ffffff;
  --text-muted: #888888;
  --border-color: #222222;
  --font-main: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  padding: 10px;
  line-height: 1.4;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

.container { max-width: 1000px; margin: 0 auto; }

/* Non-Linear Grid System */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: 10px;
}

@media (max-width: 768px) {
  .magazine-grid { grid-template-columns: repeat(2, 1fr); }
}

.tile {
  background: var(--tile-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.tile:hover { border-color: var(--accent); }

/* Tile Sizes */
.tile-2x2 { grid-column: span 2; grid-row: span 2; min-height: 250px; }
.tile-2x1 { grid-column: span 2; }
.tile-large { grid-column: span 4; padding: 40px; }
@media (max-width: 768px) { .tile-large { grid-column: span 2; } }

.tile-label {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.tile-title { font-size: 1.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 5px; }
.tile-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Responsive Stories Grid (Wrapping) */
.stories-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
  padding: 10px;
  justify-items: center;
}

.story-item {
  width: 70px;
  text-align: center;
}
.story-thumb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  padding: 2px;
  margin: 0 auto 5px;
}
.story-thumb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.story-item span { font-size: 0.65rem; color: var(--text-muted); display: block; overflow: hidden; text-overflow: ellipsis; }

/* SEO Tags Wall (Integrated) */
.tag-section {
  grid-column: span 4;
  background: #000;
  padding: 20px;
  border-top: 2px solid var(--accent);
}
@media (max-width: 768px) { .tag-section { grid-column: span 2; } }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud a {
  font-size: 0.75rem;
  color: #555;
  border: 1px solid #1a1a1a;
  padding: 4px 8px;
}
.tag-cloud a:hover { color: var(--accent); border-color: var(--accent); }

/* Live Notification Toast */
.live-notify {
    position: fixed;
    bottom: 80px;
    left: -300px;
    width: 260px;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.live-notify.active { left: 20px; }
.notify-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #000; font-weight: bold; font-size: 0.7rem; }
.notify-content { font-size: 0.75rem; color: #fff; }
.notify-content b { color: var(--accent); }

/* Verification Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background: #121212;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 0 50px rgba(255, 107, 0, 0.2);
}
.modal-content h3 { font-size: 1.4rem; margin-bottom: 15px; }
.modal-content p { font-size: 0.85rem; color: #888; margin-bottom: 25px; }
.verify-btn {
    background: var(--accent);
    color: #000;
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.header {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { font-weight: 900; font-size: 1.5rem; }
.brand span { color: var(--accent); }

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.5);
    z-index: 3000;
    border: none;
    animation: pulse-fab 2s infinite;
}
.fab-text {
    position: absolute;
    right: 70px;
    background: var(--accent);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@keyframes pulse-fab {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 107, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.story-item:hover .story-thumb {
    box-shadow: 0 0 15px var(--accent);
    transform: scale(1.05);
}
.story-thumb { transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }