/* ===== GLOBAL ===== */

body{
font-family: Arial, Helvetica, sans-serif;
margin:0;
background:#0a0a0a;
color:white;
line-height:1.6;
}

/* ===== TITLES ===== */

h1{
color:#ffff00;
margin-top:0;
}

h2,h3,h4{
color:white;
margin-top:0;
max-width:1100px;
margin-left:auto;
margin-right:auto;
}

h3{
margin-top:50px;
margin-bottom:15px;
}

/* ===== LINKS ===== */

a{
color:white;
text-decoration:none;
}

a:hover{
color:#ffff00;
text-decoration:underline;
}

/* ===== HEADER ===== */

.site-header{
background:#050505;
border-bottom:1px solid #222;
padding:20px 40px;
display:flex;
justify-content:space-between;
align-items:center;
}

.site-header h1{
font-size:26px;
margin:0;
}

.site-header nav a{
margin-left:20px;
font-weight:bold;
}

/* RELEASE HEADER INFO */

.release-info{
display:flex;
flex-direction:column;
gap:8px;
}

.release-field{
font-size:14px;
}

.field-label{
color:#57A0D3;
font-weight:bold;
margin-right:5px;
}

.release-description{
margin-top:10px;
}

.release-description p{
margin:5px 0 0 0;
color:#ccc;
}

.in-collection{
color:#2ecc71;
font-weight:bold;
margin-bottom:8px;
}

.btn-remove-collection{
color:#e74c3c;
text-decoration:none;
}

/* COLLECTION ACTION BUTTONS */

.collection-actions{
margin-top:10px;
display:flex;
gap:10px;
flex-wrap:wrap;
}

.btn-remove-collection,
.btn-sell-item{
padding:6px 12px;
border-radius:4px;
text-decoration:none;
font-size:13px;
font-weight:bold;
display:inline-block;
}

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

.btn-remove-collection:hover{
background:#c0392b;
}

.btn-sell-item{
background:#ffff00;
color:black;
}

.btn-sell-item:hover{
background:#e6e600;
}

/* ===== MAIN CONTAINER ===== */

.container{
max-width:1200px;
margin:auto;
padding:30px 20px;
}

/* ===== SEARCH ===== */

.search-form{
display:flex;
gap:10px;
}

.search-form input{
padding:10px;
border:none;
border-radius:4px;
width:260px;
background:#222;
color:white;
}

.search-form button{
background:#ffff00;
color:black;
border:none;
padding:10px 16px;
border-radius:4px;
cursor:pointer;
font-weight:bold;
}

.search-form button:hover{
background:#333;
color:white;
}

/* ===== RELEASE GRID ===== */

.release-grid{
display:grid;
grid-template-columns:repeat(4, 1fr);
gap:25px;
}

.release-community{
margin-top:15px;
font-size:14px;
color:#666;
}

/* ===== RELEASE CARD ===== */

.release-card{
background:#181818;
border:1px solid #222;
padding:12px;
border-radius:6px;
transition:0.2s;
}

.release-card:hover{
transform:translateY(-4px);
background:#1f1f1f;
box-shadow:0 8px 20px rgba(0,0,0,0.6);
}

.release-card img{
width:100%;
border-radius:4px;
}

.release-title{
font-size:14px;
margin-top:8px;
}

/* ===== RELEASE PAGE IMAGE ===== */

.release-cover{
margin:20px 0;
}

.release-cover img{
width:300px;
border-radius:6px;
box-shadow:0 10px 25px rgba(0,0,0,0.6);
}

/* ===== TABLE ===== */

.versions-table{
width:100%;
border-collapse:collapse;
margin-top:25px;
}

.versions-table th{
background:#1a1a1a;
padding:10px;
text-align:left;
font-size:14px;
color:#57A0D3;
}

.versions-table td{
padding:10px;
border-bottom:1px solid #2a2a2a;
font-size:14px;
}

.versions-table tr:hover{
background:#1f1f1f;
cursor:pointer;
}

/* ===== COUNTRY GROUP ===== */

.country-group td{
background:#111;
font-size:18px;
padding:14px;
border-top:2px solid #333;
text-align:center;
font-weight:bold;
letter-spacing:1px;
color:#ffff00;
}

/* ===== MINI COVER ===== */

.versions-table img{
width:60px;
height:60px;
object-fit:cover;
border-radius:4px;
}

/* ===== PAGINATION ===== */

.pagination{
margin-top:40px;
}

.pagination a{
background:#ffff00;
color:black;
padding:10px 15px;
margin-right:5px;
border-radius:4px;
font-weight:bold;
}

.pagination a:hover{
background:#333;
color:white;
}

/* ===== FOOTER ===== */

.site-footer{
margin-top:60px;
padding:30px;
text-align:center;
background:#000;
border-top:2px solid #222;
color:#999;
font-size:14px;
}

/* RELEASE PAGE LAYOUT */

.release-layout{
display:grid;
grid-template-columns:300px 1fr 220px;
gap:40px;
align-items:flex-start;
margin-bottom:40px;
}

.release-main-image{
width:300px;
border-radius:6px;
box-shadow:0 10px 25px rgba(0,0,0,0.6);
}

.release-info{
flex:1;
}

.release-info h1{
font-size:32px;
margin-bottom:15px;
color:#ffff00;
}

.release-meta{
font-size:18px;
margin-bottom:15px;
}

.meta-sep{
margin:0 8px;
color:#666;
}

.release-label{
margin-bottom:10px;
font-size:16px;
}

.release-cat{
font-size:16px;
color:#ccc;
}

/* ===== CATALOG CARDS ===== */

.release-grid{
display:grid;
grid-template-columns:repeat(4, 1fr);
gap:25px;
}

/* CARD */

.release-card{
background:#1a1a1a;
border-radius:6px;
overflow:hidden;
transition:all 0.2s;
}

.release-card:hover{
transform:translateY(-5px);
background:#222;
box-shadow:0 5px 15px rgba(0,0,0,0.5);
}

.release-card a{
display:block;
color:white;
text-decoration:none;
}

/* COVER */

.card-cover img{
width:100%;
display:block;
}

/* INFO */

.card-info{
padding:12px;
}

/* TITLE */

.card-title{
font-weight:bold;
color:#ffff00;
font-size:14px;
margin-bottom:5px;
}

/* COUNTRY + YEAR */

.card-meta{
font-size:12px;
color:#999;
margin-bottom:5px;
}

/* FORMAT */

.card-format{
font-size:12px;
margin-bottom:3px;
}

/* LABEL */

.card-label{
font-size:12px;
color:#888;
}

/* BADGES */

.card-cover{
position:relative;
}

.badge{
position:absolute;
top:8px;
font-size:11px;
font-weight:bold;
padding:4px 6px;
border-radius:3px;
z-index:2;
}

.badge-promo{
left:8px;
background:#ffff00;
color:black;
}

.badge-limited{
right:8px;
background:#ff4444;
color:white;
}

/* COVER HOVER OVERLAY */

.card-cover{
position:relative;
overflow:hidden;
}

.card-overlay{
position:absolute;
bottom:0;
left:0;
right:0;
background:rgba(0,0,0,0.7);
color:#ffff00;
text-align:center;
padding:10px;
font-size:13px;
opacity:0;
transition:opacity 0.2s;
}

.card-cover:hover .card-overlay{
opacity:1;
}

/* HERO SECTION */

.hero{
text-align:center;
padding:60px 20px;
border-bottom:1px solid #222;
margin-bottom:40px;
}

.hero h1{
font-size:48px;
margin-bottom:10px;
color:#ffff00;
}

.hero-subtitle{
font-size:20px;
margin-bottom:10px;
color:#ccc;
}

.hero-description{
font-size:14px;
color:#999;
margin-bottom:25px;
}

.hero-search{
display:flex;
justify-content:center;
gap:10px;
}

.hero-search input{
width:350px;
padding:12px;
border:none;
border-radius:4px;
background:#222;
color:white;
}

.hero-search button{
background:#ffff00;
color:black;
border:none;
padding:12px 18px;
border-radius:4px;
font-weight:bold;
cursor:pointer;
}

.hero-search button:hover{
background:#333;
color:white;
}

/* HERO SECTION */

.hero{
padding:70px 20px;
border-bottom:1px solid #222;
margin-bottom:40px;
}

.hero-grid{
display:grid;
grid-template-columns:1fr 2fr;
align-items:center;
gap:40px;
max-width:1100px;
margin:auto;
}

.hero-logo{
text-align:center;
}

.hero-logo img{
max-width:260px;
}

.hero-content h1{
font-size:48px;
margin-bottom:10px;
color:#ffff00;
}

.hero-subtitle{
font-size:20px;
margin-bottom:10px;
color:#ccc;
}

.hero-description{
font-size:14px;
color:#999;
margin-bottom:25px;
}

.hero-search{
display:flex;
gap:10px;
}

.hero-search input{
flex:1;
padding:12px;
border:none;
border-radius:4px;
background:#222;
color:white;
}

.hero-search button{
background:#ffff00;
color:black;
border:none;
padding:12px 18px;
border-radius:4px;
font-weight:bold;
cursor:pointer;
}

.hero-search button:hover{
background:#333;
color:white;
}

/* RESPONSIVE DESIGN */

@media (max-width:900px){

.release-grid{
grid-template-columns:repeat(2,1fr);
}

.hero-grid{
grid-template-columns:1fr;
text-align:center;
}

.hero-logo img{
max-width:200px;
margin-bottom:20px;
}

.hero-search{
flex-direction:column;
}

.hero-search input{
width:100%;
}

.hero-search button{
width:100%;
}

.release-layout{
flex-direction:column;
}

.release-cover img{
width:100%;
max-width:320px;
}

}

@media (max-width:500px){

.release-grid{
grid-template-columns:1fr;
}

.hero h1{
font-size:32px;
}

}

/* RELEASE DETAILS */

.release-details{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
margin:30px 0;
}

.details-column{
display:flex;
flex-direction:column;
gap:10px;
}

.detail-row{
display:flex;
justify-content:space-between;
border-bottom:1px solid #222;
padding:6px 0;
}

.detail-label{
color:#57A0D3;
font-weight:bold;
}

.detail-value{
color:white;
text-align:right;
max-width:70%;
}

/* RELEASE GALLERY */

.release-gallery{
display:flex;
flex-wrap:wrap;
gap:8px;
}

.gallery-thumb{
width:70px;
height:70px;
object-fit:cover;
cursor:pointer;
border-radius:4px;
opacity:0.85;
transition:0.2s;
}

.gallery-thumb:hover{
opacity:1;
transform:scale(1.05);
}

/* LIGHTBOX */

.lightbox{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
justify-content:center;
align-items:center;
z-index:9999;
}

.lightbox img{
max-width:90%;
max-height:90%;
border-radius:6px;
}

/* TABLE CONTAINER */

.release-details,
.versions-table{
max-width:1100px;
margin:40px auto;
}

/* TABLE BACKGROUND */

.release-details{
background:#1c1c1c;
padding:25px;
border-radius:8px;
}

.versions-table{
background:#1c1c1c;
border-radius:8px;
overflow:hidden;
}

/* TABLE HEADERS */

.versions-table th{
background:#222;
padding:12px;
position:sticky;
top:0;
z-index:10;
}

.versions-table thead{
background:#222;
}

/* TABLE CELLS */

.versions-table td{
padding:10px;
}

/* TABLE ROW HOVER */

.versions-table tr:hover{
background:#242424;
}

/* SECTION TITLES */

h3{
position:relative;
padding-bottom:8px;
margin-top:50px;
margin-bottom:20px;
}

h3:after{
content:"";
display:block;
width:60px;
height:3px;
background:#57A0D3;
margin-top:6px;
}

/* PAGE CONTAINER */

.release-page{
max-width:1200px;
margin:0 auto;
padding:20px;
}

/* CARDS */

.card{
background:#1c1c1c;
border-radius:10px;
padding:25px;
margin-bottom:30px;
box-shadow:0 8px 20px rgba(0,0,0,0.5);
}

/* HEADER CARD */

.release-card-header{
padding:30px;
}

/* CARD TITLES */

.card h3{
margin-top:0;
}

/* TABLE INSIDE CARD */

.card table{
margin-top:10px;
}

/* QUICK GUIDE */

.quick-guide{
max-width:1100px;
margin:50px auto;
padding:0 20px;
}

.guide-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.guide-card{
position:relative;
display:block;
overflow:hidden;
border-radius:8px;
background:#111;
}

.guide-card img{
width:100%;
height:140px;
object-fit:cover;
display:block;
transition:transform 0.3s;
}

.guide-card:before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
z-index:1;
}

.guide-card span{
position:absolute;
bottom:10px;
left:10px;
color:white;
font-weight:bold;
font-size:16px;
z-index:2;
text-shadow:0 2px 4px rgba(0,0,0,0.8);
}

.guide-card:hover img{
transform:scale(1.08);
}

.guide-card:hover span{
color:#ffff00;
}

/* QUICK GUIDE RESPONSIVE */

@media (max-width:900px){

.guide-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media (max-width:500px){

.guide-grid{
grid-template-columns:1fr;
}

}

/* BREADCRUMBS */

.breadcrumbs{
max-width:1100px;
margin:20px auto;
font-size:13px;
color:#888;
}

.breadcrumbs a{
color:#bbb;
}

.breadcrumbs a:hover{
color:#ffff00;
}

/* STATISTICS PAGE */

.stats-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
max-width:900px;
margin:40px auto;
}

.stat-card{
background:#1c1c1c;
padding:30px;
border-radius:8px;
text-align:center;
box-shadow:0 5px 15px rgba(0,0,0,0.5);
}

.stat-number{
font-size:36px;
font-weight:bold;
color:#ffff00;
margin-bottom:10px;
}

.stat-label{
color:#bbb;
font-size:14px;
}

@media (max-width:700px){

.stats-grid{
grid-template-columns:1fr 1fr;
}

}

/* CHARTS */

.chart-container{
max-width:900px;
margin:40px auto;
background:#1c1c1c;
padding:25px;
border-radius:8px;
}

.chart-container canvas{
width:100%;
max-height:500px;
}

/* MODALS */

.modal{
display:none;
position:fixed;
z-index:1000;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
}

.modal-header{
display:flex;
justify-content:flex-end;
margin-bottom:10px;
}

.modal-content{
background:#111;
width:420px;
max-width:90%;
margin:80px auto;
border-radius:8px;
padding:20px;
position:relative;
}

.modal-frame{
width:100%;
height:500px;
border:none;
background:white;
border-radius:6px;
}

.modal-close{
font-size:22px;
cursor:pointer;
color:white;
}

/* AUTH MODAL TABS */

#loginForm,
#registerForm{
margin-top:10px;
}

.auth-form{
display:flex;
flex-direction:column;
gap:16px;
width:100%;
}

.auth-form input{
width:100%;
padding:12px;
border:none;
border-radius:4px;
background:#222;
color:white;
font-size:14px;
box-sizing:border-box;
}

.auth-modal{
width:420px;
}

.auth-tabs{
display:flex;
margin-bottom:20px;
border-bottom:1px solid #333;
}

.auth-tabs button{
flex:1;
background:#222;
color:white;
border:none;
padding:12px;
cursor:pointer;
font-weight:bold;
}

.auth-tabs button:hover{
background:#333;
}

.auth-tabs button.active{
background:#ffff00;
color:black;
}

.auth-form button{
background:#ffff00;
color:black;
border:none;
padding:10px 18px;
border-radius:4px;
cursor:pointer;
font-weight:bold;
align-self:flex-end;
}

.auth-form button:hover{
background:#333;
color:white;
}

/* MODAL ANIMATION */

.modal{
display:none;
position:fixed;
z-index:1000;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
opacity:0;
transition:opacity 0.25s ease;
}

.modal.show{
display:block;
opacity:1;
}

.modal-content{
transform:translateY(-30px);
transition:transform 0.25s ease;
}

.modal.show .modal-content{
transform:translateY(0);
}

/* USER DROPDOWN MENU */

.user-menu{
position:relative;
display:inline-block;
margin-left:15px;
}

.user-trigger{
cursor:pointer;
font-weight:bold;
}

.user-dropdown{
display:none;
position:absolute;
right:0;
top:30px;
background:#111;
border:1px solid #333;
border-radius:4px;
min-width:170px;
z-index:999;
}

.user-dropdown a{
display:block;
padding:10px;
text-decoration:none;
color:white;
border-bottom:1px solid #222;
}

.user-dropdown a:hover{
background:#222;
}

.user-menu:hover .user-dropdown{
display:block;
}

/* CSS para el Merketplace */

.marketplace-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:20px;
margin-top:20px;
}

.marketplace-card{
background:#111;
border:1px solid #333;
padding:10px;
border-radius:6px;
transition:all 0.2s ease;
cursor:pointer;
}

.marketplace-card:hover{
transform:translateY(-4px);
border-color:#ffff00;
}

.marketplace-card img{
width:100%;
height:220px;
object-fit:cover;
border-radius:4px;
transition:transform 0.2s ease;
}

.marketplace-card:hover img{
transform:scale(1.03);
}

.marketplace-price{
font-weight:bold;
color:#ffff00;
}

.marketplace-meta{
font-size:13px;
color:#aaa;
line-height:1.4;
margin-top:5px;
margin-bottom:8px;
}

/* LISTING PAGE */

.listing-layout{
display:grid;
grid-template-columns:600px 1fr;
gap:30px;
margin-top:20px;
align-items:flex-start;
}

/* GALERIA del LISTING*/

.listing-thumb{
width:100%;
height:100%;
object-fit:cover;
cursor:pointer;
border-radius:4px;
}

/* DETALLES del LISTING*/

.listing-details{
background:#111;
border:1px solid #333;
padding:25px;
border-radius:6px;
width:100%;
max-width:700px;
position:sticky;
top:120px;
}

.listing-price{
font-size:28px;
font-weight:bold;
color:#ffff00;
margin-bottom:20px;
}

.listing-release-meta{
font-size:14px;
line-height:1.5;
margin-bottom:15px;
color:#ddd;
}

.listing-release-link{
text-align:right;
margin-bottom:10px;
}

.listing-release-link a{
font-size:13px;
color:#ccc;
text-decoration:none;
}

.listing-release-link a:hover{
color:#ffff00;
}

/* LIGHTBOX del LISTING*/

#listing-lightbox{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
align-items:center;
justify-content:center;
z-index:2000;
}

#listing-lightbox img{
max-width:90%;
max-height:90%;
}

/* LISTING GALLERY GRID */

.listing-gallery{
display:grid;
grid-template-columns:repeat(3,1fr);
grid-template-rows:repeat(3,1fr);
gap:8px;
width:100%;
max-width:600px;
height:600px;
}

.gallery-item{
position:relative;
width:100%;
height:100%;
overflow:hidden;
border-radius:4px;
}

.gallery-item img{
width:100%;
height:100%;
object-fit:cover;
cursor:pointer;
}

/* IMAGEN GRANDE */

.gallery-item-1{
grid-column:1 / span 2;
grid-row:1 / span 2;
}

/* MINIATURAS */

.gallery-item-2{grid-column:3;grid-row:1;}
.gallery-item-3{grid-column:3;grid-row:2;}
.gallery-item-4{grid-column:3;grid-row:3;}
.gallery-item-5{grid-column:2;grid-row:3;}
.gallery-item-6{grid-column:1;grid-row:3;}

/* HOVER ZOOM */

.gallery-item img{
transition:transform .2s ease;
}

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

/* LIGHTBOX */

#listing-lightbox{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.95);
align-items:center;
justify-content:center;
z-index:2000;
}

#listing-lightbox img{
max-width:90%;
max-height:90%;
}

.lightbox-close{
position:absolute;
top:20px;
right:30px;
font-size:28px;
background:none;
border:none;
color:white;
cursor:pointer;
}

.lightbox-prev,
.lightbox-next{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:40px;
background:none;
border:none;
color:white;
cursor:pointer;
padding:20px;
}

.lightbox-prev{
left:20px;
}

.lightbox-next{
right:20px;
}

/* MY LISTINGS */

.my-listings-table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

.my-listings-table th,
.my-listings-table td{
padding:10px;
border-bottom:1px solid #333;
}

.my-listings-table a{
margin-right:10px;
color:#ffff00;
text-decoration:none;
}

.my-listings-table a:hover{
text-decoration:underline;
}

.btn-contact {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 18px;
    background: #ffff00;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
}

.btn-contact:hover {
    background: #333;
}

/* EDIT PHOTOS LISTING */

.listing-photos-edit{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-bottom:20px;
}

.listing-photo-edit{
width:120px;
text-align:center;
}

.listing-photo-edit img{
width:100%;
border-radius:4px;
margin-bottom:5px;
}

/* CSS del CHAT */

/* CHAT HEADER */
.chat-header {
    max-width: 800px;
    margin: 30px auto 10px;
    padding: 12px 15px;
    background: #111;
    color: #fff;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
}

/* CONTENEDOR */
.chat-container {
    max-width: 800px;
    margin: 0 auto 40px;
    border: 1px solid #222;
    background: #0d0d0d;
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
}

/* MENSAJES */
.chat-messages {
    padding: 15px;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* MENSAJE GENERAL */
.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

/* MENSAJES PROPIOS */
.chat-message.mine {
    align-self: flex-end;
    text-align: right;
}

/* MENSAJES DEL OTRO */
.chat-message.theirs {
    align-self: flex-start;
    text-align: left;
}

/* BURBUJAS */
.bubble {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

/* COLOR PROPIO */
.mine .bubble {
    background: #1f1f1f;
    color: #fff;
}

/* COLOR OTRO */
.theirs .bubble {
    background: #2a2a2a;
    color: #ddd;
}

.chat-image img {
    max-width: 200px;
    border-radius: 6px;
    margin-top: 5px;
    cursor: pointer;
}

/* HORA */
.time {
    font-size: 10px;
    color: #777;
    margin-top: 4px;
}

/* FORMULARIO */
#chatForm {
    display: flex;
    border-top: 1px solid #222;
    padding: 10px;
    gap: 10px;
    background: #111;
}

/* INPUT */
#messageInput {
    flex: 1;
    padding: 10px;
    border: none;
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
    resize: none;
}

/* BOTÓN */
#chatForm button {
    padding: 10px 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#chatForm button:hover {
    background: #555;
}

/* CSS del INBOX */

/* CONTENEDOR */
.inbox-container {
    max-width: 800px;
    margin: 30px auto;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
}

/* ITEM */
.inbox-item {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #1f1f1f;
    text-decoration: none;
    color: #ddd;
    transition: background 0.2s ease;
}

/* HOVER (CORREGIDO) */
.inbox-item:hover {
    background: #1a1a1a;
}

/* USUARIO */
.inbox-user {
    font-weight: bold;
    color: #fff;
}

/* TÍTULO ITEM */
.inbox-item-title {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* MENSAJE */
.inbox-message {
    margin-top: 6px;
    color: #ccc;
    font-size: 14px;
}

.inbox-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* CONVERSACIONES NO LEÍDAS */
.inbox-item.unread {
    background: #161616;
    border-left: 3px solid #e60000;
}

/* HOVER SOBRE NO LEÍDOS */
.inbox-item.unread:hover {
    background: #222;
}

/* FECHA */
.inbox-date {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

/* BADGE NO LEÍDO */
.unread-badge {
    display: inline-block;
    background: #e60000;
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 10px;
    margin-left: 8px;
}

.unread-badge {
    display: inline-block;
    background: red;
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 10px;
    margin-left: 8px;
}

/* LIGHTBOX */
#chat-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* IMAGEN GRANDE */
#chat-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* BOTÓN CERRAR */
.chat-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* FORMULARIO ITEMS */
.item-form {
    max-width: 900px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* SECCIONES */
.form-section {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #222;
}

/* TITULOS */
.form-section h3 {
    margin-bottom: 15px;
    color: #fff;
}

/* INPUTS */
.item-form input,
.item-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
}

/* TEXTAREA */
.item-form textarea {
    min-height: 80px;
}

/* CHECKBOX */
.form-section label {
    margin-right: 15px;
    color: #ccc;
}

/* BOTÓN */
.btn-save {
    padding: 12px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-save:hover {
    background: #444;
}

.item-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item-image {
    position: relative;
}

.item-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.delete-image {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #e60000;
    text-decoration: none;
}

.delete-image:hover {
    text-decoration: underline;
}

.edit-item-btn {
    margin: 10px 0 15px;
}

.edit-item-btn a {
    display: inline-block;
    padding: 8px 14px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
}

.edit-item-btn a:hover {
    background: #444;
}

/* FILA FORMULARIO */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

/* LABEL */
.form-row label {
    width: 180px;
    color: #ccc;
    font-size: 13px;
}

/* INPUT */
.form-row input,
.form-row textarea {
    flex: 1;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
}

/* TEXTAREA */
.form-row textarea {
    min-height: 80px;
}

/* RELEASE COMMENTS */

/* COMMENTS BLOCK */

#comments{
margin-top:40px;
background:#111;
padding:25px;
border-radius:6px;
border:1px solid #333;
}

#comments textarea{
width:100%;
min-height:120px;
background:#1a1a1a;
border:1px solid #333;
color:#fff;
padding:12px;
border-radius:4px;
resize:vertical;
font-family:inherit;
}

#comments textarea:focus{
outline:none;
border-color:#ffff00;
}

#comments button{
background:#ffff00;
color:#000;
border:none;
padding:10px 20px;
font-weight:bold;
cursor:pointer;
border-radius:4px;
float:right;
}

#comments button:hover{
opacity:0.9;
}

.comments-list{
margin-top:30px;
}

.comment{
padding:15px 0;
border-bottom:1px solid #222;
}

.comment-user{
font-weight:bold;
margin-bottom:5px;
}

.comment-user a{
color:#fff;
text-decoration:none;
}

.comment-user a:hover{
color:#ffff00;
}

.comment-text{
color:#ddd;
line-height:1.5;
margin-bottom:5px;
}

.comment-date{
font-size:12px;
color:#777;
}

/* ocultar input real */
.file-upload input[type="file"] {
    display: none;
}

/* botón personalizado */
.custom-file-btn {
    background: #333;
    color: #ffff00 !important;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    border: none;
}

.custom-file-btn:hover {
    background: #555;
}

/* texto nombre archivo */
#fileName {
    margin-left: 10px;
    color: #ccc;
    font-size: 13px;
}