/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-image: url(../assets/background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
}

/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
}

/* Left Sidebar Styles */
.sidebar {
    width: 250px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    max-width: 180px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px;
    color: #e91e63;
    text-decoration: none;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.nav-item:hover {
    background-color: #333;
}

.nav-item i {
    margin-right: 15px;
    width: 20px;
}

.nav-item.active {
    background-color: #333;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
}

/* Discover Posts Container */
.discover-posts {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Discover Content */
.discover-content {
    margin-left: 250px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-left: calc(250px + ((100% - 1400px) / 2));
}

/* Discover Grid */
.discover-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.discover-post {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(233, 30, 99, 0.2);
    width: 100%;
}

.discover-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

.discover-media {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.discover-info {
    padding: 20px;
}

.discover-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;

}

.discover-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    border-bottom: 1px solid rgba(233, 30, 99, 0.2);
}

.discover-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;

}

.discover-header i {
    color: #e91e63;
}

.discover-header p {
    color: #888;
    font-size: 14px;
    margin-left: 32px;
}

.discover-profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e91e63;
}

.discover-username {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.discover-game {
    color: #e91e63;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.discover-caption {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.discover-actions {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    color: #e91e63;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.stat:hover {
    transform: scale(1.1);
}

.stat i {
    font-size: 16px;
}

@media (max-width: 1200px) {
    .discover-content {
        margin-left: 250px;
        max-width: 800px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .discover-content {
        margin-left: 70px;
        width: calc(100% - 70px);
        padding: 1rem;
    }

    .discover-header h1 {
        font-size: 20px;
    }
    
    .discover-media {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .discover-content {
        margin-left: 70px;
    }

    .discover-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 10px;
    }
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    margin-left: 250px;
    width: calc(100% - 400px);
}

.grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #000;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-media {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 100%; /* Makes it square */
}

.grid-item.large .grid-media {
    padding-bottom: 56.25%; /* 16:9 aspect ratio for large items */
}

.grid-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.grid-item:hover .item-overlay {
    opacity: 1;
}

.grid-item:hover .grid-media img {
    transform: scale(1.05);
}

.item-stats {
    display: flex;
    gap: 20px;
    color: white;
    font-size: 16px;
    display: flex;
    gap: 1rem;
    color: white;
    font-size: 0.9rem;
}

.item-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-stats i {
    color: #e91e63;
}

.item-type {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e91e63;
    font-size: 24px;
    z-index: 2;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e91e63;
}

/* Search bar - păstrăm doar partea necesară pentru butonul din sidebar */
.search-trigger {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 1024px) {
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .discover-grid {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    
    .grid-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .logo img {
        max-width: 40px;
    }

    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
        padding: 1rem;
    }

    .explore-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }

    .discover-grid {
        padding: 0.5rem;
    }

    .discover-media {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .explore-grid {
        grid-template-columns: 1fr;
    }
}/* Trending Header Styles */
.trending-header {
    padding: 30px 0;
    margin-bottom: 20px;
    margin-bottom: 2rem;
    padding: 1rem;
}

.trending-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.trending-title i {
    color: #e91e63;
    font-size: 24px;
    font-size: 1.5rem;
}

.trending-title h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    font-size: 1.8rem;
}

.trending-subtitle {
    color: #888;
    font-size: 14px;
    margin-left: 36px; /* aliniază cu textul de la titlu */
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Update la marginea grid-ului pentru a se potrivi cu header-ul */
.explore-grid {
    margin-top: 20px;
}

/* Media Query pentru mobile */
@media (max-width: 768px) {
    .trending-header {
        padding: 20px 0;
    }

    .trending-title {
        gap: 8px;
    }

    .trending-title i,
    .trending-title h2 {
        font-size: 20px;
    }

    .trending-subtitle {
        margin-left: 28px;
    }
}
/* Search bar */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-start;
  }
  
  .search-overlay.active {
    display: flex;
  }
  
  .search-container {
    width: 100%;
    max-width: 600px;
    background-color: #121212;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .search-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #333;
  }
  
  .search-header i {
    color: #e91e63;
    margin-right: 12px;
  }
  
  .search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
  }
  
  .search-input::placeholder {
    color: #666;
  }
  
    .close-search {
        background: none;
        border: none;
        color: #e91e63;
        cursor: pointer;
        padding: 8px;
        transition: none;
    }
  
  .search-results {
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .search-section {
    padding: 16px;
    border-bottom: 1px solid #333;
  }
  
  .search-section h3 {
    color: #e91e63;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .search-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  
  .search-item:hover {
    background-color: #333;
  }
  
  .item-meta {
    color: #e91e63;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  
  /* Modificăm butonul de search din sidebar să fie button în loc de link */
  .search-trigger {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
  }
  
  /* Responsive adjustments for search */
  @media (max-width: 768px) {
    .search-container {
        margin: 0;
        height: 100%;
        max-width: none;
        border-radius: 0;
    }
    
    .search-results {
        max-height: calc(100vh - 70px);
    }
  }

.search-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #1c1f26;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e91e63;
}
.avatar-initial {
    background: #1c1f26 !important;
    color: #fff;
}

/* Main Content Layout */
.main-content {
    margin-left: 250px;
    padding: 2rem;
    width: calc(100% - 250px);
    min-height: 100vh;
}

@media (max-width: 1200px) {
    .grid-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .grid-item.large .grid-media {
        padding-bottom: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .discover-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
        padding: 1rem;
    }

    .discover-grid {
        padding: 0.5rem;
    }

    .discover-media {
        height: 300px;
        max-height: 400px;
    }
}



/* Post Header - horizontal layout like feed */
.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem 0.5rem 1rem;
}

.profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e91e63;
    flex-shrink: 0;
}

.avatar-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e91e63;
    background: #333;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.post-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* Username, badge, time inline with avatar (feed style) */
.username-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.username-line h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
}

.username-line h3 a {
    color: #fff;
    text-decoration: none;
}

.username-line h3 a:hover {
    color: #e91e63;
}

/* Badge styles moved to /css/badges.css - centralized to avoid overrides */


.post-time {
    color: #888;
    font-size: 13px;
    margin-left: -1.5px;
}

/* Game name badge under post text, like feed */
.game-name {
    display: inline-block;
    background: #7a184a;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 16px;
    padding: 4px 16px;
    margin: 10px 1rem 0 1rem;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

/* Post content */
.post-content {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

/* Post wrapper */
.post {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(233, 30, 99, 0.2);
    overflow: hidden;
}
.post:hover {
  box-shadow: 0 0 12px rgba(233, 30, 99, 0.3);
  transform: scale(1.005);
}

/* Post media */
.post-media {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
  background: #121212; /* pentru fundal ca în feed */
  padding: 6px;
}

.post-media img,
.post-media video {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
  border-radius: 6px; /* ca să nu fie chiar colțuri drepte în interior */
}

/* Post actions */
.post-actions {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    color: #e91e63;
}

.action-btn i {
    color: #e91e63;
}

.action-btn.active {
    color: #e91e63;
}

.action-btn.active i {
    color: #e91e63;
}

/* Animation for buttons */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.action-btn i.pop {
    animation: pop 0.3s ease-in-out;
}

.action-btn.disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Post options */
.post-options {
    position: relative;
    margin-left: auto;
}

.post-options-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.post-options-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e91e63;
}

.post-options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px 0;
    min-width: 140px;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    overflow: hidden;
}

.post-options-menu.show {
    display: block;
}

.post-option {
    padding: 10px 16px;
    cursor: pointer;
    color: #fff;
    font-size: 0.92rem;
    transition: background 0.15s, color 0.15s;
}

.post-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e91e63;
}

.post-option.delete-post {
    color: #ff4444;
}

.post-option.delete-post:hover {
    background: rgba(255, 68, 68, 0.1);
}

.post-option.delete-post {
    color: #ff4444;
}

.post-option.delete-post:hover {
    background: rgba(255, 68, 68, 0.1);
}

/* Save button styles - copied from index.css */
.save-btn {
  background: none !important;
}

.save-btn:hover {
  background: none !important;
  color: #e91e63; /* sau white, dacă vrei */
}
.save-btn i {
  font-size: 1rem;
  margin-right: 4px;
  color: #e91e63;
}
.save-btn.saved {
  color: #e91e63;
}
.save-count {
  margin-left: 4px;
  font-size: 0.9rem;
 color: #888;

  
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* Clean up - Remove old styles */

/* Username Line and Premium Badge Styles - matching index.css exactly */
.username-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.username-line h3 {
    margin: 0;
    font-size: 16px;
}

/* Badge styles moved to /css/badges.css - centralized to avoid overrides */

/* Premium Badge Styles - matching home.js structure */
.username-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.username-line h3 {
    margin: 0;
    font-size: 16px;
}

.username-line .username a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.username-line .username a:hover {
    text-decoration: underline;
}

/* Badge styles moved to /css/badges.css - centralized to avoid overrides */

/* Legacy styles for old structure (fallback) */
/* Legacy post-username structure relies on centralized badge rules in /css/badges.css */

/* Modal Styles - copied from index.css */
.modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: #1c1c1c;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.2s ease-out;
    max-width: 350px;
    width: 100%;
    color: #fff;
}

.modal-buttons {
    margin-top: 15px;
}

.modal-buttons button {
    margin: 0 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-cancel {
    background: #444;
    color: white;
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.trending-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ff4081, #ff1744);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  margin: 10px 0 5px 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes slideBounceBack {
  0% {
    transform: translateX(0) translateY(0);
  }
  10% {
    transform: translateX(10%) translateY(-10px);
  }
  20% {
    transform: translateX(20%) translateY(0);
  }
  30% {
    transform: translateX(30%) translateY(-10px);
  }
  40% {
    transform: translateX(40%) translateY(0);
  }
  50% {
    transform: translateX(50%) translateY(-10px);
  }
  60% {
    transform: translateX(60%) translateY(0);
  }
  70% {
    transform: translateX(70%) translateY(-10px);
  }
  80% {
    transform: translateX(80%) translateY(0);
  }
  90% {
    transform: translateX(90%) translateY(-10px);
  }
  100% {
    transform: translateX(100%) translateY(0);
  }
}

.trending-flame {
  display: inline-block;
  font-size: 20px;
  position: relative;
  animation: slideBounceBack 6s ease-in-out infinite alternate;
}

/* === FINAL MOBILE OVERRIDES (peste toate regulile anterioare) === */
@media (max-width: 768px) {

  /* Elimină deplasarea spre dreapta */
  .discover-content {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 640px;
    padding: 1rem 16px 90px !important; /* spațiu jos pentru bottom-nav */
    box-sizing: border-box;
  }

  /* Wrapper liste */
  .discover-grid,
  .discover-posts {
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* Card post (aliniat cu feed) */
  .discover-grid .post,
  .discover-posts .post,
  .discover-post,
  .post {
    width: 100% !important;
    margin: 0 0 24px !important;
    padding: 18px 18px 20px !important;
    background: rgba(18,18,18,0.9) !important;
    border: 1px solid rgba(233,30,99,0.12) !important;
    border-radius: 22px !important;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.55);
    box-sizing: border-box;
  }

  /* Header / avatar */
  .post-header {
    padding: 0 0 14px !important;
    margin: 0 0 6px !important;
    border-bottom: 1px solid rgba(233,30,99,0.12);
  }
  .post-header .profile-img,
  .post-header img.profile-img {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex: 0 0 46px;
  }

  /* Text */
  .post-content,
  .discover-caption {
    padding: 0 !important;
    margin: 8px 0 10px !important;
    font-size: 0.92rem !important;
    line-height: 1.32rem !important;
  }

  /* Game pill */
  .game-name {
    margin: 6px 0 12px !important;
    font-size: 0.72rem !important;
    padding: 5px 14px !important;
    letter-spacing: .5px;
    background:#7b0e37 !important;
    border-radius: 999px !important;
    display:inline-block;
  }

  /* Media */
  .post-media {
    margin: 4px 0 14px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    background:#101010 !important;
    overflow: hidden;
  }
  .post-media img,
  .post-media video {
    width: 100% !important;
    height: auto !important;
    max-height: 420px;
    object-fit: cover !important; /* schimbă în contain dacă preferi */
    display:block;
  }

  /* Acțiuni */
  .post-actions {
    padding: 10px 0 0 !important;
    margin: 0 !important;
    border-top: 1px solid rgba(233,30,99,0.12);
    gap: 26px !important;
  }
  .post-actions .action-btn {
    padding: 4px 2px !important;
    font-size: 0.74rem !important;
    gap: 6px !important;
  }

  /* Elimină orice width/margin inline moștenit */
  .post[style*="width"],
  .discover-post[style*="width"] {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Telefoane foarte mici */
@media (max-width: 420px) {
  .discover-content {
    padding: 0.9rem 12px 90px !important;
  }
  .discover-grid,
  .discover-posts { gap: 20px !important; }
  .post {
    padding: 16px 16px 18px !important;
    border-radius: 20px !important;
  }
  .post-actions { gap: 20px !important; }
}

/* === Unify Discover posts with Feed post container === */
.discover-grid .discover-post,
.discover-post,
.discover-grid .post,
.discover-posts .post {
  background: rgba(18,18,18,0.85) !important;
  border: 1px solid rgba(233,30,99,0.15) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  width: 100% !important;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.55);
  transition: box-shadow .25s ease, transform .25s ease;
  overflow: hidden;
}

.discover-grid .discover-post:hover,
.discover-post:hover,
.discover-grid .post:hover,
.discover-posts .post:hover {
  box-shadow: 0 0 14px -2px rgba(233,30,99,0.35);
  transform: translateY(-3px);
}

/* Header + content exact ca feed */
.discover-post .post-header,
.post .post-header {
  padding: 14px 16px 10px 16px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin: 0 !important;
}

.discover-post .post-content,
.post .post-content {
  padding: 8px 16px 4px 16px !important;
  font-size: 0.95rem;
  line-height: 1.45rem;
}

.discover-post .game-name,
.post .game-name {
  margin: 6px 16px 10px !important;
  background:#7a184a;
  font-size: .70rem;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing:.5px;
}

/* Media bloc central */
.discover-post .post-media,
.post .post-media {
  margin: 4px 16px 12px !important;
  background:#101010;
  border-radius: 12px;
  padding: 6px;
  max-height: 500px;
  overflow:hidden;
}

.discover-post .post-media img,
.discover-post .post-media video,
.post .post-media img,
.post .post-media video {
  width:100%;
  height:auto;
  max-height:500px;
  object-fit:contain;
  border-radius:8px;
  display:block;
}

/* Actions bar */
.discover-post .post-actions,
.post .post-actions {
  padding: 10px 16px 14px 16px !important;
  margin: 0 !important;
  border-top:1px solid rgba(255,255,255,0.08);
  gap:28px;
}

.discover-post .post-actions .action-btn,
.post .post-actions .action-btn {
  font-size:0.78rem;
  gap:6px;
  padding:4px 2px;
  color:rgba(255,255,255,0.8);
  transition:.25s;
}
.discover-post .post-actions .action-btn:hover,
.post .post-actions .action-btn:hover {
  color:#e91e63;
}

/* Remove old discover specific card style */
.discover-post {
  border: none !important;
}

/* Desktop centrare feed */
@media (min-width:769px){
  .discover-content {
    margin-left:250px !important;
    width:calc(100% - 250px) !important;
    max-width:none !important;
    padding:32px 32px 90px !important;
    box-sizing:border-box;
  }
  .discover-grid,
  .discover-posts {
    max-width:760px !important;
    margin:0 auto !important;
    width:100% !important;
    padding:0 !important;
  }
}

/* Mobile deja avea override – adaptăm padding */
@media (max-width:768px){
  .discover-grid,
  .discover-posts {
    max-width:640px !important;
    padding:0 0 40px !important;
  }
  .discover-post .post-actions,
  .post .post-actions {
    gap:22px;
  }
}





