/*
 Theme Name:   CrnaBerza Torrent
 Theme URI:    https://crnaberza.com
 Author:       CrnaBerza
 Author URI:   https://crnaberza.com
 Description:  Dark torrent index theme with Tailwind CSS
 Version:      1.0.0
 Text Domain:  crnaberza-torrent
 Tags:         dark, torrent, responsive, tailwind
 Requires at least: 6.0
 Tested up to:  6.7
*/

/* Pagination styles */
.pagination .page-numbers {
  @apply px-4 py-2 border border-gray-700 bg-gray-800 text-gray-300 hover:bg-gray-700 hover:text-white transition;
}
.pagination .current {
  @apply bg-emerald-600 text-white border-emerald-600 font-bold;
}
.pagination .prev, .pagination .next {
  @apply font-semibold;
}

.description-collapsed {
    max-height: 550px;          /* taller to show intro text + first image or two */
    overflow: hidden;
    position: relative;
}

.description-collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #111827); /* match your bg color */
    pointer-events: none;
}

.description-full {
    max-height: none;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #10b981; /* emerald-600 */
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.read-more-btn:hover {
    background-color: #059669; /* emerald-700 */
}

.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.aspect-w-16 iframe,
.aspect-w-16 object,
.aspect-w-16 embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* ── Navigation ─────────────────────────────────────────────────── */
.nav-glass {
    background: rgba(10, 13, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-glass::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16,185,129,0.5), rgba(16,185,129,0.2), transparent);
}
.logo-text {
    background: linear-gradient(135deg, #10b981 0%, #34d399 40%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-text-light {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-icon-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    min-width: 60px;
}
.nav-icon-btn i {
    font-size: 17px;
    transition: all 0.2s ease;
}
.nav-icon-btn:hover {
    color: #ffffff;
    background: rgba(16,185,129,0.08);
}
.nav-icon-btn:hover i {
    color: #10b981;
    filter: drop-shadow(0 0 6px rgba(16,185,129,0.6));
    transform: translateY(-1px);
}
.nav-icon-btn.active {
    color: #10b981;
    background: rgba(16,185,129,0.1);
}
.nav-icon-btn.active i {
    color: #10b981;
    filter: drop-shadow(0 0 8px rgba(16,185,129,0.7));
}
.upload-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 0 20px rgba(16,185,129,0.25), 0 0 1px rgba(16,185,129,0.5) inset;
    transition: all 0.2s ease;
}
.upload-btn:hover {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 0 28px rgba(16,185,129,0.45), 0 0 1px rgba(16,185,129,0.8) inset;
    transform: translateY(-1px);
}
.upload-btn:active {
    transform: translateY(0);
}
.avatar-ring {
    background: linear-gradient(135deg, #10b981, #059669, #0f766e);
    padding: 2px;
    border-radius: 50%;
}
.avatar-inner {
    border-radius: 50%;
    overflow: hidden;
    display: block;
}
.profile-dropdown {
    background: rgba(15, 18, 26, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(16,185,129,0.08);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    text-decoration: none;
    border-radius: 6px;
    margin: 2px 6px;
}
.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    transition: all 0.15s ease;
}
.dropdown-item:hover {
    background: rgba(16,185,129,0.08);
    color: #ffffff;
}
.dropdown-item:hover i {
    color: #10b981;
}
.dropdown-item.danger:hover {
    background: rgba(239,68,68,0.08);
    color: #f87171;
}
.dropdown-item.danger:hover i {
    color: #f87171;
}
.msg-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 8px rgba(16,185,129,0.6);
}
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    margin: 4px 0;
}
.cat-item:hover .cat-dropdown {
    display: block !important;
}
.mobile-menu {
    background: rgba(10, 13, 20, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,255,255,0.06);
}
[x-cloak] { display: none !important; }