/* Community Container */
.community-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Community Header */
.community-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: var(--card-bg);
    border-radius: 10px;
}

.section-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1rem;
}

.community-actions {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

.share-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.share-button:hover {
    background: var(--primary-color-dark);
}

.share-button i {
    font-size: 1.1rem;
}

/* Table Styles */
.community-table {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: 600;
}

.table-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.table-row:hover {
    background: var(--hover-bg);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row .col {
    display: flex;
    align-items: center;
}

.watch-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
    text-decoration: none;
}

.watch-btn:hover {
    background: var(--success-color-dark);
}

.watch-btn i {
    font-size: 1rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
}

.page-link.active {
    background: var(--primary-color);
    color: white;
}

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

.modal-content {
    position: relative;
    background: var(--card-bg);
    width: 90%;
    max-width: 500px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--input-bg);
    color: var(--text-color);
}

.submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-color-dark);
}

.no-records {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .table-header {
        display: none;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .table-row .col {
        padding: 0.5rem 0;
    }
    
    .table-row .col::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
    }
    
    .watch-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .table-header, .table-row {
        grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr 0.8fr;
    }
}

@media screen and (max-width: 768px) {
    .community-container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }

    .earnings-title {
        font-size: 1.3rem;
    }

    .earnings-amount {
        font-size: 1.8rem;
    }
}

/* Kazanç ve bet değerleri için sağa hizalama */
.col[data-label="Kazanç"],
.col[data-label="Bet"] {
    text-align: right;
}

/* Responsive pagination */
@media screen and (max-width: 768px) {
    .pagination {
        gap: 0.3rem;
    }

    .page-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Kazanç kısmı için */
.earnings {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: 10px;
}

.earnings-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.earnings-amount {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Buton ve uyarı stilleri */
.login-notice {
    color: var(--text-color);
    opacity: 0.8;
}

.login-notice a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-notice a:hover {
    text-decoration: underline;
}