* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 88px;
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #f5f5f5;
    color: #000000;
    line-height: 1.6;
    direction: rtl;
}

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #d32f2f;
    height: 8px;
    z-index: 1001;
}

.header {
    position: fixed;
    top: 8px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #d32f2f;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 36px;
    display: inline-block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 28px;
    color: #000;
}

.logo-sub {
    font-size: 14px;
    color: #d32f2f;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    color: #d32f2f;
}

.nav-menu a.active {
    color: #d32f2f;
    border-bottom-color: #d32f2f;
    font-weight: 700;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb a {
    color: #d32f2f;
    text-decoration: none;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    position: relative;
}

.side-ad {
    position: fixed;
    width: 160px;
    height: 600px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
    top: 120px;
    z-index: 100;
}

.side-ad.left {
    left: calc(50% - 700px - 180px);
}

.side-ad.right {
    right: calc(50% - 700px - 180px);
}

.ad-placeholder {
    width: 140px;
    height: 580px;
    background-image: url('https://picsum.photos/140/580?random=1');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 4px;
    position: relative;
}

.ad-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.ad-placeholder > * {
    position: relative;
    z-index: 1;
}

.ad-label {
    font-size: 9px;
    color: #999;
    margin-top: 5px;
    text-align: center;
}

.top-banner-ad {
    width: 100%;
    max-width: 1200px;
    height: 90px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-placeholder {
    width: 728px;
    height: 90px;
    background-image: url('poker-banner.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.article-container {
    background-color: #ffffff;
}

.article-header {
    margin-bottom: 25px;
}

.category-tag {
    display: inline-block;
    color: #d32f2f;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

h1 {
    font-size: 38px;
    line-height: 1.3;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

h2 {
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
    color: #333;
    margin: 30px 0 15px 0;
}

h3 {
    font-size: 22px;
    font-weight: 700;
    color: #d32f2f;
    margin: 25px 0 12px 0;
}

.subtitle {
    font-size: 20px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 400;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #888;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.author {
    font-weight: 600;
    color: #333;
}

.featured-image {
    width: 100%;
    height: 500px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    font-size: 13px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content strong {
    font-weight: 700;
    color: #000;
}

.article-content ul, .article-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.highlight-box {
    background-color: #f8f8f8;
    border-right: 4px solid #d32f2f;
    padding: 25px;
    margin: 30px 0;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    position: relative;
    border-radius: 4px;
}

.info-box {
    background-color: #e3f2fd;
    border-right: 4px solid #2196F3;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.info-box h4 {
    color: #1976D2;
    margin-bottom: 10px;
    font-size: 18px;
}

.success-box {
    background-color: #e8f5e9;
    border-right: 4px solid #4CAF50;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.warning-box {
    background-color: #fff3e0;
    border-right: 4px solid #FF9800;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    border-radius: 8px;
}

.cta-box h3 {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
}

.cta-box p {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #764ba2;
    padding: 16px 45px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    border-radius: 50px;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.news-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.news-card-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-card-date {
    font-size: 13px;
    color: #999;
}

.tournament-card {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    transition: border-color 0.2s;
}

.tournament-card:hover {
    border-color: #d32f2f;
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tournament-prize {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
}

.tournament-badge {
    background-color: #d32f2f;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    background-color: #f8f8f8;
    padding: 20px;
    margin-bottom: 20px;
    border-right: 3px solid #d32f2f;
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.sidebar-item {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    display: block;
    transition: color 0.2s;
}

.sidebar-item a:hover {
    color: #d32f2f;
}

.sidebar-ad-box {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-ad-content {
    width: 100%;
    height: 250px;
    background-image: url('https://picsum.photos/300/250?random=3');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 4px;
    padding: 20px;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.sidebar-ad-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
}

.sidebar-ad-content > * {
    position: relative;
    z-index: 1;
}

.share-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

.share-button:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

/* Tablet & Mobile Responsive */
@media (max-width: 1400px) {
    .side-ad {
        display: none;
    }
}

@media (max-width: 1024px) {
    .header-content {
        padding: 0 15px;
    }

    .logo {
        font-size: 28px;
    }

    .logo-main {
        font-size: 24px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 15px;
    }
}

@media (max-width: 968px) {
    body {
        padding-top: 60px;
    }

    .top-bar {
        height: 4px;
    }

    .header {
        top: 4px;
        padding: 8px 0;
    }

    .header-content {
        padding: 0 10px;
        gap: 10px;
    }

    .logo {
        font-size: 18px;
        gap: 6px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .logo-main {
        font-size: 16px;
    }

    .logo-sub {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .main-container {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 30px;
    }

    .sidebar {
        position: static;
    }

    h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 18px;
    }

    .article-content {
        font-size: 16px;
    }

    .nav-menu {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .nav-menu a {
        font-size: 11px;
        padding: 4px 8px;
        white-space: nowrap;
    }

    .featured-image {
        height: 300px;
        border-radius: 4px;
    }

    .side-ad {
        display: none;
    }

    .top-banner-ad {
        height: auto;
        padding: 10px;
        margin: 15px auto;
    }

    .banner-placeholder {
        width: 100%;
        height: 60px;
        font-size: 14px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-box {
        padding: 20px;
        font-size: 18px;
    }

    .info-box, .success-box, .warning-box {
        padding: 15px;
        margin: 20px 0;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .tournament-card {
        padding: 20px;
    }

    .breadcrumb {
        padding: 12px 15px;
        font-size: 13px;
    }

    .article-meta {
        font-size: 13px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .share-button {
        flex: 1 1 45%;
        text-align: center;
    }
}

/* Mobile phones - Portrait */
@media (max-width: 640px) {
    .page-wrapper {
        background-color: #ffffff;
    }

    .header {
        padding: 12px 0;
    }

    .header-content {
        padding: 0 12px;
        flex-direction: column;
        gap: 12px;
    }

    .logo {
        font-size: 24px;
        gap: 6px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .logo-main {
        font-size: 20px;
    }

    .logo-sub {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 5px;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu a {
        font-size: 13px;
        white-space: nowrap;
        padding: 6px 8px;
        flex-shrink: 0;
    }

    .breadcrumb {
        padding: 10px 12px;
        font-size: 12px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .top-banner-ad {
        margin: 12px auto;
        padding: 8px;
    }

    .banner-placeholder {
        height: 50px;
        font-size: 12px;
    }

    .main-container {
        padding: 15px 12px;
        gap: 25px;
    }

    .article-header {
        margin-bottom: 20px;
    }

    .category-tag {
        font-size: 12px;
        margin-bottom: 8px;
    }

    h1 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    h2 {
        font-size: 22px;
        margin: 25px 0 12px 0;
    }

    h3 {
        font-size: 18px;
        margin: 20px 0 10px 0;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .article-meta {
        font-size: 12px;
        gap: 8px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .featured-image {
        height: 220px;
        margin-bottom: 12px;
        border-radius: 4px;
    }

    .image-caption {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .article-content p {
        margin-bottom: 16px;
    }

    .article-content ul, .article-content ol {
        margin: 15px 0 15px 20px;
        padding-right: 5px;
    }

    .article-content li {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .highlight-box {
        padding: 16px;
        font-size: 16px;
        margin: 20px 0;
        border-right-width: 3px;
    }

    .info-box, .success-box, .warning-box {
        padding: 14px;
        margin: 18px 0;
        font-size: 14px;
        border-right-width: 3px;
    }

    .info-box h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .cta-box {
        padding: 25px 16px;
        margin: 25px 0;
        border-radius: 6px;
    }

    .cta-box h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .cta-box p {
        font-size: 15px;
    }

    .cta-button {
        padding: 14px 35px;
        font-size: 16px;
        margin-top: 15px;
        display: block;
        width: 100%;
        text-align: center;
    }

    .news-grid {
        gap: 16px;
    }

    .news-card {
        border-radius: 6px;
    }

    .news-card-image {
        height: 180px;
    }

    .news-card-content {
        padding: 16px;
    }

    .news-card-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .news-card-excerpt {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .news-card-date {
        font-size: 12px;
    }

    .tournament-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 6px;
    }

    .tournament-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .tournament-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .tournament-prize {
        font-size: 20px;
    }

    .tournament-badge {
        font-size: 11px;
        padding: 4px 12px;
    }

    .tournament-card p {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .sidebar-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .sidebar-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .sidebar-item {
        padding: 10px 0;
    }

    .sidebar-item a {
        font-size: 14px;
    }

    .sidebar-ad-box {
        padding: 12px;
        margin-bottom: 16px;
    }

    .sidebar-ad-content {
        height: 200px;
        padding: 16px;
    }

    .share-section {
        margin-top: 30px;
        padding-top: 25px;
    }

    .share-label {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .share-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-button {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        text-align: center;
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Very small phones */
@media (max-width: 375px) {
    .logo {
        font-size: 22px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .logo-main {
        font-size: 18px;
    }

    .logo-sub {
        font-size: 10px;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 5px 6px;
    }

    h1 {
        font-size: 21px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 17px;
    }

    .article-content {
        font-size: 14px;
    }

    .main-container {
        padding: 12px 10px;
    }

    .featured-image {
        height: 200px;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 15px;
    }

    .share-button {
        font-size: 12px;
        padding: 7px 10px;
    }
}

/* Landscape mode for phones */
@media (max-width: 968px) and (orientation: landscape) {
    .featured-image {
        height: 250px;
    }

    .nav-menu {
        gap: 12px;
    }

    .main-container {
        padding: 18px 12px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a,
    .sidebar-item a,
    .share-button,
    .cta-button,
    .news-card {
        -webkit-tap-highlight-color: rgba(211, 47, 47, 0.1);
        touch-action: manipulation;
    }

    .nav-menu a,
    .sidebar-item a {
        padding: 12px 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta-button {
        min-height: 48px;
    }

    .share-button {
        min-height: 44px;
    }

    /* Better touch targets */
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}

/* High DPI screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
