/* =======================================================
   ORGANIC GRIND STYLES - Estatísticas individuais de slots
   Layout baseado no bonus hunt tracker
   ======================================================= */

.organic-grind-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.organic-grind-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgb(27 21 57 / 90%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.organic-grind-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.organic-grind-title i {
    color: #8b5cf6;
    font-size: 24px;
    animation: organic-pulse 2s ease-in-out infinite;
}

@keyframes organic-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Controls */
.organic-grind-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.organic-search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
}

.organic-search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(255, 255, 255, 0.15);
}

.organic-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.organic-filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.organic-filter-select:focus {
    outline: none;
    border-color: #8b5cf6;
}

.organic-filter-select option {
    background: #1a1a2e;
    color: #fff;
}

.refresh-organic-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.refresh-organic-btn:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
}

/* Loading, Error, Empty States */
.organic-grind-loading,
.organic-grind-error,
.organic-grind-empty {
    background: rgb(27 21 57 / 90%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.organic-grind-loading i,
.organic-grind-error i,
.organic-grind-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.organic-grind-loading i {
    color: #8b5cf6;
    animation: spin 1s linear infinite;
}

.organic-grind-error i {
    color: #ef4444;
}

.organic-grind-empty i {
    color: #6b7280;
    opacity: 0.5;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.organic-grind-loading h3,
.organic-grind-error h3,
.organic-grind-empty h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.organic-grind-loading p,
.organic-grind-error p,
.organic-grind-empty p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
}

/* Main Content */
.organic-grind-main {
    display: none;
}

.organic-grind-main.active {
    display: block;
}

/* Slots Overview Grid - MODIFICADO */
.organic-slots-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    min-height: 600px; /* Altura mínima para manter layout consistente */
}

.organic-slot-card {
    background: rgb(27 21 57 / 95%);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 280px; /* Altura consistente para todos os cards */
}

.organic-slot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
}

.organic-slot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.organic-slot-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.organic-slot-image {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.organic-slot-image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #374151, #4b5563);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.organic-slot-info {
    flex: 1;
}

.organic-slot-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.organic-slot-provider {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.organic-slot-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.organic-slot-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.organic-slot-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.organic-slot-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.organic-slot-profit {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
}

.organic-slot-profit.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.organic-slot-profit.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.organic-slot-profit.neutral {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Overview Pagination - NOVO */
.organic-overview-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    background: rgb(27 21 57 / 90%);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.organic-overview-pagination button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
}

.organic-overview-pagination button:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
    transform: translateY(-1px);
}

.organic-overview-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.organic-overview-pagination button.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

.organic-overview-pagination .page-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.organic-overview-pagination .nav-btn {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.organic-overview-pagination .nav-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.4);
    border-color: #8b5cf6;
}

/* Detailed View */
.organic-slot-details {
    display: none;
    background: rgb(27 21 57 / 95%);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.organic-slot-details.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.organic-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.organic-details-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.organic-details-image {
    width: 100px;
    height: 130px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.organic-details-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
}

.organic-details-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

.organic-back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.organic-back-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

/* Stats Grid */
.organic-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.organic-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.organic-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}

.organic-stat-card i {
    font-size: 22px;
    margin-bottom: 10px;
    display: block;
}

.organic-stat-card .value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.organic-stat-card .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.organic-stat-card.profit .value { color: #10b981; }
.organic-stat-card.loss .value { color: #ef4444; }
.organic-stat-card.neutral .value { color: #6b7280; }

/* Spins Table */
.organic-spins-table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.organic-spins-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.organic-spins-table th,
.organic-spins-table td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.organic-spins-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #8b5cf6;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.organic-spins-table td {
    color: #fff;
    font-size: 14px;
}

.organic-spins-table .spin-number {
    font-weight: 700;
    color: #8b5cf6;
}

.organic-spins-table .bet-amount {
    color: #fbbf24;
    font-weight: 600;
}

.organic-spins-table .win-amount {
    font-weight: 700;
}

.organic-spins-table .win-amount.profit {
    color: #10b981;
}

.organic-spins-table .win-amount.loss {
    color: #ef4444;
}

.organic-spins-table .multiplier {
    font-weight: 700;
    color: #ffffff;
}

.organic-spins-table .super-spin {
    position: relative;
}

.organic-spins-table .super-spin::before {
    content: '⭐';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Pagination */
.organic-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.organic-pagination button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.organic-pagination button:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.organic-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.organic-pagination button.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.organic-pagination .page-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0 15px;
}

/* Footer */
.organic-grind-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgb(27 21 57 / 95%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.organic-grind-last-update {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsividade - MODIFICADO */
@media (max-width: 968px) {
    .organic-grind-container {
        padding: 15px;
    }
    
    .organic-grind-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .organic-grind-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .organic-search-input {
        width: 100%;
    }
    
    .organic-slots-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        min-height: 500px;
    }
    
    .organic-slot-card {
        min-height: 240px;
    }
    
    .organic-overview-pagination {
        padding: 15px;
    }
    
    .organic-overview-pagination button {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 35px;
    }
    
    .organic-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .organic-details-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .organic-spins-table-container {
        padding: 15px;
    }
}

@media (max-width: 640px) {
    .organic-grind-header {
        padding: 15px;
    }
    
    .organic-grind-title {
        font-size: 18px;
        flex-direction: column;
        gap: 8px;
    }
    
    .organic-slots-overview {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 400px;
    }
    
    .organic-slot-card {
        min-height: 200px;
    }
    
    .organic-overview-pagination {
        flex-wrap: wrap;
        gap: 8px;
        padding: 15px;
    }
    
    .organic-overview-pagination .page-info {
        order: -1;
        width: 100%;
        text-align: center;
        margin: 0 0 10px 0;
    }
    
    .organic-slot-stats {
        grid-template-columns: 1fr;
    }
    
    .organic-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .organic-spins-table th,
    .organic-spins-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .organic-pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .organic-pagination button {
        padding: 6px 10px;
        font-size: 12px;
    }
}