/**
 * Warez Shortcode by WPTHEME - Frontend Styles
 */

/* Acordeón */
.wzdl-accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.wzdl-accordion-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s;
}

.wzdl-accordion-header:hover {
    background: #e9ecef;
}

.wzdl-accordion-icon {
    transition: transform 0.3s;
}

.wzdl-accordion-item.active .wzdl-accordion-icon {
    transform: rotate(180deg);
}

.wzdl-accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.wzdl-accordion-item.active .wzdl-accordion-content {
    padding: 1.5rem;
    max-height: 2000px;
}

/* Tabs */
.wzdl-tabs-container {
    margin: 2rem 0;
}

.wzdl-tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.wzdl-tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.wzdl-tab-btn:hover {
    background: #f8f9fa;
}

.wzdl-tab-btn.active {
    border-bottom-color: #007bff;
    color: #007bff;
}

.wzdl-tab-pane {
    display: none;
}

.wzdl-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Botones */
.wzdl-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.wzdl-button.btn-primary {
    background: #007bff;
    color: #fff;
}

.wzdl-button.btn-primary:hover {
    background: #0056b3;
}

.wzdl-button.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.wzdl-button.btn-success {
    background: #28a745;
    color: #fff;
}

.wzdl-button.btn-danger {
    background: #dc3545;
    color: #fff;
}

.wzdl-button.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.wzdl-button.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* División */
.wzdl-divider {
    border: none;
    background: #e0e0e0;
}

.wzdl-divider.divider-dashed {
    background: transparent;
    border-top: 2px dashed #e0e0e0;
}

.wzdl-divider.divider-dotted {
    background: transparent;
    border-top: 2px dotted #e0e0e0;
}

.wzdl-divider.divider-gradient {
    background: linear-gradient(to right, transparent, #007bff, transparent);
}

/* Código */
.wzdl-code-block {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #282c34;
}

.wzdl-code-title {
    padding: 0.75rem 1rem;
    background: #21252b;
    color: #abb2bf;
    font-weight: 600;
    border-bottom: 1px solid #181a1f;
}

.wzdl-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #21252b;
    border-bottom: 1px solid #181a1f;
}

.wzdl-code-lang {
    color: #61afef;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.wzdl-code-copy {
    padding: 0.25rem 0.75rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.wzdl-code-copy:hover {
    background: #0056b3;
}

.wzdl-code-block pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
}

.wzdl-code-block code {
    color: #abb2bf;
    font-family: 'Courier New', monospace;
}

/* Tabla */
.wzdl-table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.wzdl-table {
    width: 100%;
    border-collapse: collapse;
}

.wzdl-table th,
.wzdl-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.wzdl-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.wzdl-table.table-striped tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.wzdl-table.table-bordered {
    border: 1px solid #e0e0e0;
}

.wzdl-table.table-bordered th,
.wzdl-table.table-bordered td {
    border: 1px solid #e0e0e0;
}

/* Quote */
.wzdl-quote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    font-style: italic;
}

.wzdl-quote.quote-border {
    border: 2px solid #007bff;
    border-left-width: 4px;
}

.wzdl-quote.quote-highlight {
    background: #e7f3ff;
}

.quote-author {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    font-style: normal;
}

/* Alerta */
.wzdl-alert {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    position: relative;
}

.wzdl-alert.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.wzdl-alert.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wzdl-alert.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.wzdl-alert.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-content {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}

.alert-close:hover {
    opacity: 1;
}

/* Columnas */
.wzdl-columns {
    display: grid;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .wzdl-columns {
        grid-template-columns: 1fr !important;
    }
}

/* Caja */
.wzdl-box {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.box-title {
    margin: 0;
    font-size: 1.125rem;
}

.box-content {
    padding: 1.5rem;
}

.wzdl-box.box-primary .box-header {
    background: #007bff;
    color: #fff;
}

.wzdl-box.box-success .box-header {
    background: #28a745;
    color: #fff;
}

.wzdl-box.box-warning .box-header {
    background: #ffc107;
    color: #000;
}

.wzdl-box.box-danger .box-header {
    background: #dc3545;
    color: #fff;
}

/* Lista */
.wzdl-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.wzdl-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.list-icon {
    color: #007bff;
    font-weight: bold;
}

.wzdl-list.list-success .list-icon {
    color: #28a745;
}

.wzdl-list.list-danger .list-icon {
    color: #dc3545;
}

/* Botón de Descarga */
.wzdl-download-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.download-icon {
    font-size: 2.5rem;
    color: #fff;
}

.download-details {
    flex: 1;
}

.download-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.95;
}

.download-meta span {
    color: #fff;
}

.download-server,
.download-size,
.download-password {
    color: #fff;
}

.download-password code {
    background: rgba(255,255,255,0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}

.wzdl-download-btn {
    padding: 1rem 2rem;
    background: #fff;
    color: #667eea;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.3s, box-shadow 0.3s;
}

.wzdl-download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
    color: #667eea;
}

/* Servidor */
.wzdl-server-item {
    margin: 1rem 0;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff !important;
    transition: all 0.3s;
}

.wzdl-server-item * {
    color: #212529;
}

.wzdl-server-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.server-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529 !important;
}

.server-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-quality {
    background: #28a745 !important;
    color: #fff !important;
}

.badge-lang {
    background: #007bff !important;
    color: #fff !important;
}

.badge-subs {
    background: #6c757d !important;
    color: #fff !important;
}

.server-description {
    color: #495057 !important;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.server-description p {
    color: #495057 !important;
}

.server-download-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #007bff !important;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.server-download-btn:hover {
    background: #0056b3 !important;
    transform: translateY(-2px);
    color: #fff !important;
}

/* Requisitos */
.wzdl-requirements {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f8f9fa !important;
    border: 2px solid #e0e0e0;
    color: #212529 !important;
}

.wzdl-requirements * {
    color: #212529 !important;
}

.wzdl-req-minimos {
    border-color: #ffc107 !important;
    background: #fff9e6 !important;
}

.wzdl-req-recomendados {
    border-color: #28a745 !important;
    background: #e8f5e9 !important;
}

.req-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.req-icon {
    font-size: 1.5rem;
}

.req-title {
    margin: 0;
    font-size: 1.25rem;
    color: #212529 !important;
    font-weight: 600;
}

.req-content {
    color: #212529 !important;
    line-height: 1.6;
}

.req-content * {
    color: #212529 !important;
}

.req-content p {
    color: #212529 !important;
    margin: 0.5rem 0;
}

.req-content ul,
.req-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    color: #212529 !important;
}

.req-content li {
    margin: 0.5rem 0;
    color: #212529 !important;
}

.req-content ul li::marker,
.req-content ol li::marker {
    color: #212529 !important;
}

/* Capturas */
.wzdl-screenshots-gallery {
    display: grid;
    margin: 1.5rem 0;
}

.wzdl-screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.wzdl-screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.wzdl-screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.wzdl-screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

/* Info Archivo */
.wzdl-file-info {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.file-info-header {
    padding: 1rem 1.5rem;
    background: #007bff;
    color: #fff;
    font-weight: 600;
    font-size: 1.125rem;
}

.file-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.file-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
}

.info-value {
    font-size: 1rem;
}

/* Rating */
.wzdl-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
}

.star-full {
    color: #ffc107;
}

.star-half {
    color: #ffc107;
    opacity: 0.5;
}

.star-empty {
    color: #e0e0e0;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #ffc107, #ff9800);
}

.rating-value {
    font-weight: 600;
}

/* Especificaciones */
.wzdl-specifications {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fff !important;
}

.wzdl-specifications * {
    color: #212529 !important;
}

.specs-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e0e0e0;
}

.specs-icon {
    font-size: 1.5rem;
}

.specs-title {
    margin: 0;
    font-size: 1.125rem;
    color: #212529 !important;
    font-weight: 600;
}

.specs-content {
    padding: 1.5rem;
    background: #fff !important;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-icon {
    font-size: 1.25rem;
}

.spec-label {
    font-weight: 600;
    min-width: 150px;
    color: #212529 !important;
}

.spec-value {
    flex: 1;
    color: #212529 !important;
}

.spec-value * {
    color: #212529 !important;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wzdl-download-box {
        flex-direction: column;
        text-align: center;
    }
    
    .download-info {
        flex-direction: column;
        text-align: center;
    }
    
    .file-info-grid {
        grid-template-columns: 1fr;
    }
}
