/* 
 * Watermark Background for MarketPawns Starter
 * Светло-серые водяные знаки валют, чартов и шахматных фигур
 * Применяется только к main-content зонам
 */

/* Базовые классы для водяного фона */
.watermark-container {
    position: relative;
}

.watermark-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="%23E5E7EB" opacity="0.3"><g><!-- Dollar Symbol --><text x="50" y="80" font-size="40" font-family="Arial, sans-serif" transform="rotate(15)">$</text><!-- Euro Symbol --><text x="300" y="60" font-size="35" font-family="Arial, sans-serif" transform="rotate(-10)">€</text><!-- Pound Symbol --><text x="180" y="120" font-size="32" font-family="Arial, sans-serif" transform="rotate(25)">£</text><!-- Yen Symbol --><text x="320" y="200" font-size="38" font-family="Arial, sans-serif" transform="rotate(-20)">¥</text><!-- Bitcoin Symbol --><text x="80" y="200" font-size="30" font-family="Arial, sans-serif" transform="rotate(10)">₿</text><!-- Chart Lines --><polyline points="150,250 170,240 190,260 210,230 230,250" stroke="%23E5E7EB" stroke-width="3" fill="none" transform="rotate(5)" opacity="0.4"/><!-- Chart Bars --><rect x="260" y="280" width="8" height="40" transform="rotate(-15)"/><rect x="275" y="270" width="8" height="50" transform="rotate(-15)"/><rect x="290" y="285" width="8" height="35" transform="rotate(-15)"/><!-- Chess Pieces --><circle cx="120" cy="350" r="8" transform="rotate(20)"/><polygon points="120,330 115,345 125,345" transform="rotate(20)"/><!-- King --><circle cx="350" cy="280" r="6" transform="rotate(-30)"/><rect x="347" y="270" width="6" height="20" transform="rotate(-30)"/><!-- Rook --><circle cx="40" cy="320" r="7" transform="rotate(45)"/><path d="M40,305 L35,315 L45,315 Z" transform="rotate(45)"/><!-- Pawn --></g></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 350 350" fill="%23E5E7EB" opacity="0.25"><g><!-- Currency Symbols in different positions --><text x="200" y="50" font-size="28" font-family="Arial, sans-serif" transform="rotate(-25)">$</text><text x="80" y="150" font-size="32" font-family="Arial, sans-serif" transform="rotate(35)">€</text><text x="280" y="120" font-size="26" font-family="Arial, sans-serif" transform="rotate(-5)">£</text><text x="150" y="300" font-size="34" font-family="Arial, sans-serif" transform="rotate(18)">¥</text><!-- Candlestick Chart --><rect x="50" y="200" width="4" height="30" fill="%23E5E7EB" transform="rotate(12)"/><rect x="48" y="210" width="8" height="10" fill="%23E5E7EB" transform="rotate(12)"/><rect x="70" y="190" width="4" height="40" fill="%23E5E7EB" transform="rotate(12)"/><rect x="68" y="200" width="8" height="20" fill="%23E5E7EB" transform="rotate(12)"/><!-- Chess pieces --><circle cx="280" cy="200" r="9" transform="rotate(-40)"/><rect x="275" y="180" width="10" height="25" transform="rotate(-40)"/><!-- Knight simplified --><path d="M200,280 Q195,275 205,270 Q210,275 205,285 Q200,290 195,285 Z" transform="rotate(30)" opacity="0.5"/><!-- Bishop simplified --></g></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300" fill="%23E5E7EB" opacity="0.2"><g><!-- More scattered elements --><text x="30" y="40" font-size="24" font-family="Arial, sans-serif" transform="rotate(22)">₿</text><text x="250" y="80" font-size="26" font-family="Arial, sans-serif" transform="rotate(-18)">$</text><text x="120" y="180" font-size="29" font-family="Arial, sans-serif" transform="rotate(8)">€</text><!-- Line Chart --><polyline points="180,100 200,90 220,110 240,85 260,105" stroke="%23E5E7EB" stroke-width="2" fill="none" transform="rotate(-10)" opacity="0.4"/><!-- Trend Arrow --><path d="M60,220 L90,210 M85,205 L90,210 L85,215" stroke="%23E5E7EB" stroke-width="2" fill="none" transform="rotate(25)"/><!-- Simple chess pieces --><circle cx="200" cy="250" r="6" transform="rotate(15)"/><!-- Queen crown simplified --><path d="M200,235 L195,245 L205,245 Z M190,240 L210,240 M195,237 L205,237" stroke="%23E5E7EB" stroke-width="1.5" fill="none" transform="rotate(15)"/><!-- More currency symbols --><text x="80" y="280" font-size="20" font-family="Arial, sans-serif" transform="rotate(-35)">¥</text><text x="270" y="220" font-size="22" font-family="Arial, sans-serif" transform="rotate(40)">£</text></g></svg>');
    background-size: 400px 400px, 350px 350px, 300px 300px;
    background-position: 0px 0px, 200px 100px, 100px 200px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

/* Применяем водяные знаки только к основным content секциям главной страницы */
.hero-section-corporate,
.learning-modes-section,
.learning-navigation-section,
.features-section,
.how-it-works-section,
.latest-signals-section,
.testimonials-section {
    position: relative;
}

/* Применяем водяные знаки к фоновым контейнерам страниц, а не к элементам с текстом */
body {
    position: relative;
}

/* Фоновые водяные знаки для страниц статей и уроков - применяются к body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Водяные знаки с корпоративным золотистым оттенком */
    background-image: 
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><g fill="%23D4AF37" opacity="0.2"><text x="50" y="80" font-size="36" font-family="Arial" transform="rotate(15)">$</text><text x="200" y="60" font-size="32" font-family="Arial" transform="rotate(-10)">€</text><text x="120" y="150" font-size="30" font-family="Arial" transform="rotate(25)">£</text><text x="180" y="200" font-size="34" font-family="Arial" transform="rotate(-20)">¥</text><text x="80" y="220" font-size="28" font-family="Arial" transform="rotate(10)">₿</text><polyline points="40,120 60,110 80,130 100,105 120,125" stroke="%23D4AF37" stroke-width="2" fill="none" transform="rotate(5)" opacity="0.2"/><rect x="220" y="120" width="4" height="20" opacity="0.2" transform="rotate(-10)"/><rect x="230" y="115" width="4" height="25" opacity="0.2" transform="rotate(-10)"/><circle cx="250" cy="250" r="6" opacity="0.2" transform="rotate(20)"/><rect x="247" y="240" width="6" height="8" opacity="0.2" transform="rotate(20)"/><polygon points="245,235 250,230 255,235" opacity="0.2" transform="rotate(20)"/></g></svg>'),
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250"><g fill="%23C9B037" opacity="0.15"><text x="30" y="50" font-size="24" font-family="Arial" transform="rotate(45)">$</text><text x="150" y="80" font-size="26" font-family="Arial" transform="rotate(-30)">€</text><text x="80" y="180" font-size="22" font-family="Arial" transform="rotate(5)">£</text><text x="190" y="150" font-size="28" font-family="Arial" transform="rotate(-45)">¥</text><text x="120" y="120" font-size="20" font-family="Arial" transform="rotate(30)">₿</text><rect x="50" y="200" width="6" height="30" opacity="0.2" transform="rotate(12)"/><rect x="180" y="180" width="6" height="25" opacity="0.2" transform="rotate(-15)"/><rect x="200" y="220" width="10" height="12" opacity="0.2" transform="rotate(-20)"/><circle cx="60" cy="70" r="5" opacity="0.2" transform="rotate(25)"/><polygon points="57,60 60,55 63,60" opacity="0.2" transform="rotate(25)"/><circle cx="220" cy="50" r="6" opacity="0.2" transform="rotate(35)"/></g></svg>'),
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><g fill="%23B8860B" opacity="0.1"><text x="20" y="40" font-size="18" font-family="Arial" transform="rotate(35)">$</text><text x="120" y="70" font-size="20" font-family="Arial" transform="rotate(-25)">€</text><text x="70" y="140" font-size="16" font-family="Arial" transform="rotate(15)">£</text><text x="150" y="110" font-size="22" font-family="Arial" transform="rotate(-35)">¥</text><rect x="30" y="160" width="3" height="15" opacity="0.15" transform="rotate(8)"/><rect x="50" y="155" width="3" height="20" opacity="0.15" transform="rotate(8)"/><circle cx="170" cy="180" r="4" opacity="0.15" transform="rotate(15)"/><rect x="167" y="170" width="6" height="6" opacity="0.15" transform="rotate(15)"/><circle cx="80" cy="50" r="4" opacity="0.15" transform="rotate(-25)"/><polygon points="77,43 80,38 83,43" opacity="0.15" transform="rotate(-25)"/></g></svg>');
    
    background-size: 300px 300px, 250px 250px, 200px 200px;
    background-position: 0px 0px, 150px 100px, 75px 200px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: -1;
}

/* Фоновые шахматные фигурки для всех страниц */
body::after {
    content: '♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟ ♔ ♗ ♘ ♙ ♚ ♛ ♜ ♞ ♟ ♕ ♖ ♝ ♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟ ♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟ ♔ ♗ ♘ ♙ ♚ ♛ ♜ ♞ ♟ ♕ ♖ ♝';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 36px;
    font-family: serif;
    color: rgba(212, 175, 55, 0.12);
    line-height: 2.8;
    letter-spacing: 1.5em;
    word-spacing: 0.8em;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    transform: rotate(-8deg);
    user-select: none;
    white-space: pre-wrap;
    text-align: left;
    padding: 30px;
}

.hero-section-corporate::before,
.learning-modes-section::before,
.learning-navigation-section::before,
.features-section::before,
.how-it-works-section::before,
.latest-signals-section::before,
.testimonials-section::before {
    content: '';
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Водяные знаки с корпоративным золотистым оттенком */
    background-image: 
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><g fill="%23D4AF37" opacity="0.4"><text x="50" y="80" font-size="36" font-family="Arial" transform="rotate(15)">$</text><text x="200" y="60" font-size="32" font-family="Arial" transform="rotate(-10)">€</text><text x="120" y="150" font-size="30" font-family="Arial" transform="rotate(25)">£</text><text x="180" y="200" font-size="34" font-family="Arial" transform="rotate(-20)">¥</text><text x="80" y="220" font-size="28" font-family="Arial" transform="rotate(10)">₿</text><polyline points="40,120 60,110 80,130 100,105 120,125" stroke="%23D4AF37" stroke-width="2" fill="none" transform="rotate(5)" opacity="0.3"/><rect x="220" y="120" width="4" height="20" opacity="0.3" transform="rotate(-10)"/><rect x="230" y="115" width="4" height="25" opacity="0.3" transform="rotate(-10)"/><circle cx="250" cy="250" r="6" opacity="0.4" transform="rotate(20)"/><rect x="247" y="240" width="6" height="8" opacity="0.4" transform="rotate(20)"/><polygon points="245,235 250,230 255,235" opacity="0.4" transform="rotate(20)"/></g></svg>'),
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250"><g fill="%23C9B037" opacity="0.3"><text x="30" y="50" font-size="24" font-family="Arial" transform="rotate(45)">$</text><text x="150" y="80" font-size="26" font-family="Arial" transform="rotate(-30)">€</text><text x="80" y="180" font-size="22" font-family="Arial" transform="rotate(5)">£</text><text x="190" y="150" font-size="28" font-family="Arial" transform="rotate(-45)">¥</text><text x="120" y="120" font-size="20" font-family="Arial" transform="rotate(30)">₿</text><rect x="50" y="200" width="6" height="30" opacity="0.4" transform="rotate(12)"/><rect x="180" y="180" width="6" height="25" opacity="0.4" transform="rotate(-15)"/><rect x="200" y="220" width="10" height="12" opacity="0.4" transform="rotate(-20)"/><circle cx="60" cy="70" r="5" opacity="0.4" transform="rotate(25)"/><polygon points="57,60 60,55 63,60" opacity="0.4" transform="rotate(25)"/><circle cx="220" cy="50" r="6" opacity="0.4" transform="rotate(35)"/></g></svg>'),
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><g fill="%23B8860B" opacity="0.25"><text x="20" y="40" font-size="18" font-family="Arial" transform="rotate(35)">$</text><text x="120" y="70" font-size="20" font-family="Arial" transform="rotate(-25)">€</text><text x="70" y="140" font-size="16" font-family="Arial" transform="rotate(15)">£</text><text x="150" y="110" font-size="22" font-family="Arial" transform="rotate(-35)">¥</text><rect x="30" y="160" width="3" height="15" opacity="0.3" transform="rotate(8)"/><rect x="50" y="155" width="3" height="20" opacity="0.3" transform="rotate(8)"/><circle cx="170" cy="180" r="4" opacity="0.4" transform="rotate(15)"/><rect x="167" y="170" width="6" height="6" opacity="0.4" transform="rotate(15)"/><circle cx="80" cy="50" r="4" opacity="0.4" transform="rotate(-25)"/><polygon points="77,43 80,38 83,43" opacity="0.4" transform="rotate(-25)"/></g></svg>');
    
    background-size: 300px 300px, 250px 250px, 200px 200px;
    background-position: 0px 0px, 150px 100px, 75px 200px;
    background-repeat: repeat;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Добавляем шахматные фигурки через ::after для надёжного отображения на главной */
.hero-section-corporate::after,
.learning-modes-section::after,
.learning-navigation-section::after,
.features-section::after,
.how-it-works-section::after,
.latest-signals-section::after,
.testimonials-section::after {
    content: '♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟ ♔ ♗ ♘ ♙ ♚ ♛ ♜ ♞ ♟ ♕ ♖ ♝ ♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟';
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 36px;
    font-family: serif;
    color: rgba(212, 175, 55, 0.20);
    line-height: 2.8;
    letter-spacing: 1.5em;
    word-spacing: 0.8em;
    overflow: hidden;
    pointer-events: none !important;
    z-index: 1;
    transform: rotate(-8deg);
    user-select: none;
    white-space: pre-wrap;
    text-align: left;
    padding: 30px;
}

/* Убеждаемся, что содержимое отображается поверх водяных знаков */
.hero-section-corporate > .container,
.learning-modes-section > .container,
.learning-navigation-section > .container,
.features-section > .container,
.how-it-works-section > .container,
.latest-signals-section > .container,
.testimonials-section > .container {
    position: relative;
    z-index: 3;
}

/* Для страниц статей и уроков - основной контент выше фоновых водяных знаков */
.container {
    position: relative;
    z-index: 2;
}

/* Специальная обработка для секций с цветным фоном */
.cta-section {
    /* Не применяем водяные знаки к CTA секции с цветным фоном */
    position: relative;
}

/* Адаптивность - уменьшаем размер водяных знаков на мобильных */
@media (max-width: 768px) {
    .hero-section-corporate::before,
    .learning-modes-section::before,
    .learning-navigation-section::before,
    .features-section::before,
    .how-it-works-section::before,
    .latest-signals-section::before,
    .testimonials-section::before {
        background-size: 
            300px 300px,  /* Smaller on mobile */
            250px 250px,   
            200px 200px;
    }
    
    /* Адаптивность для фоновых водяных знаков body на планшетах */
    body::before {
        background-size: 
            200px 200px,  /* Smaller on mobile */
            175px 175px,   
            150px 150px;
    }
    
    body::after {
        font-size: 24px;  /* Smaller chess pieces on mobile */
        line-height: 3.2;
        letter-spacing: 1.2em;
    }
}

@media (max-width: 480px) {
    .hero-section-corporate::before,
    .learning-modes-section::before,
    .learning-navigation-section::before,
    .features-section::before,
    .how-it-works-section::before,
    .latest-signals-section::before,
    .testimonials-section::before {
        background-size: 
            250px 250px,  /* Even smaller on very small screens */
            200px 200px,   
            150px 150px;
    }
    
    /* Extra small mobile адаптивность для body водяных знаков */
    body::before {
        background-size: 
            150px 150px,  /* Even smaller on very small screens */
            125px 125px,   
            100px 100px;
    }
    
    body::after {
        font-size: 18px;  /* Even smaller chess pieces on very small screens */
        line-height: 3.5;
        letter-spacing: 1em;
    }
}
