/**
Theme Name: ankrank-astra-child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ankrank-astra-child
Template: astra
*/

/* ANKRANK Chess.com Style Layout - Based on ankrank_chess_style.html */

/* ArgentumSans font is loaded via PHP inline styles in functions.php for proper WordPress path resolution */

.ankrank-layout {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'ArgentumSans', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

.ankrank-layout * {
    box-sizing: border-box;
}

/* Template-about only: full width, no padding (scoped by body.ankrank-full-width) */
body.ankrank-full-width #primary.content-area {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body.ankrank-full-width .ankrank-layout,
body.ankrank-full-width .ankrank-layout .site-main,
body.ankrank-full-width .ankrank-layout .content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ankrank-full-width .site-content > .ast-container,
body.ankrank-full-width .ankrank-layout .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

body.ankrank-full-width .site-content,
body.ankrank-full-width .site-content > .ast-container,
body.ankrank-full-width .site-content #primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero Section */
.ankrank-hero {
    background: #413839;
    padding: 0 1.5rem;
    color: #fff;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* Hero 2 - same layout as hero, white background */
.ankrank-hero-2 {
    background: #ffffff;
    background-color: #ffffff;
    padding: 0 1.5rem;
    color: #262421;
    width: 100%;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.ankrank-hero-2 .ankrank-hero-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    padding: 0 1.5rem;
    height: 100%;
}
.ankrank-hero-2 .ankrank-brand-name {
    color: #ff3b4a;
}
.ankrank-hero-2 .ankrank-hero-text h1 {
    color: #262421;
}
.ankrank-hero-2 .ankrank-hero-text h1 .highlight {
    color: #81b64c;
}
.ankrank-hero-2 .ankrank-hero-text p {
    color: #555;
}
.ankrank-hero-2 .ankrank-btn-secondary {
    border-color: #262421;
    color: #262421;
}

.ankrank-hero-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    padding: 0 1.5rem;
    height: 100%;
}

.ankrank-hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ankrank-hero-visual {
    flex: 1;
}

.ankrank-brand-name {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ff3b4a;
    margin-bottom: 0.5rem;
    font-family: 'ArgentumSans', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ankrank-hero-text h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
    line-height: 1.1;
    color: #fff;
}

.ankrank-hero-text .highlight {
    color: #81b64c;
}

.ankrank-hero-text p {
    font-size: 1.05rem;
    color: #b3b0ad;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.ankrank-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ankrank-btn-primary {
    background: #81b64c;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
    display: inline-block;
}

.ankrank-btn-primary:hover {
    background: #6fa03a;
    transform: translateY(-2px);
}

.ankrank-cta-button-2-wrap {
    margin-top: 1rem;
}

.ankrank-cta-button-2-wrap .ankrank-btn-image {
    display: inline-block;
    line-height: 0;
}

.ankrank-cta-button-2-wrap .ankrank-btn-image img {
    max-height: 52px;
    width: auto;
    vertical-align: middle;
}

.ankrank-btn-secondary {
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #3e3a36;
    transition: all 0.2s;
    display: inline-block;
}

.ankrank-btn-secondary:hover {
    border-color: #81b64c;
    color: #81b64c;
}

.ankrank-hero-visual {
    background: transparent;
    border-radius: 10px;
    padding: 0;
    border: none;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ankrank-hero-visual img.ankrank-hero-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
}

.ankrank-game-demo {
    background: #262421;
    border-radius: 8px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
}

.ankrank-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #3e3a36;
    color: #b3b0ad;
    font-weight: 600;
}

.ankrank-demo-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #81b64c;
}

.ankrank-demo-problem {
    font-size: 2rem;
    text-align: center;
    margin: 1.5rem 0;
    color: #fff;
}

.ankrank-demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.ankrank-demo-tile {
    background: #3e3a36;
    border: 2px solid #4a4642;
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.2s;
}

.ankrank-demo-tile:hover {
    border-color: #81b64c;
    background: #4a4642;
}

.ankrank-demo-tile.ankrank-selected {
    border-color: #81b64c;
    background: #6fa03a;
}

.ankrank-demo-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.ankrank-demo-stat {
    padding: 1rem;
}

.ankrank-demo-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #81b64c;
}

.ankrank-demo-stat-label {
    font-size: 0.85rem;
    color: #b3b0ad;
    margin-top: 0.25rem;
}

/* Features Section */
.ankrank-features {
    padding: 5rem 2rem;
    background: #fff;
    width: 100%;
}

.ankrank-section-header {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
}

.ankrank-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #262421;
}

.ankrank-section-subtitle {
    font-size: 1.2rem;
    color: #555;
}

.ankrank-features-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.ankrank-feature-card {
    background: #f7f6f5;
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.ankrank-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ankrank-feature-icon {
    width: 60px;
    height: 60px;
    background: #81b64c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.ankrank-feature-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: block;
}

.ankrank-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #262421;
}

.ankrank-feature-text {
    font-size: 1rem;
    color: #7d7a77;
    line-height: 1.6;
}

/* Rankings Section */
.ankrank-rankings {
    padding: 5rem 2rem;
    background: #f7f6f5;
    width: 100%;
}

.ankrank-rankings-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 0 2rem;
}

.ankrank-leaderboard {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
}

.ankrank-leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f7f6f5;
}

.ankrank-leaderboard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #262421;
}

.ankrank-leaderboard-view-all {
    color: #81b64c;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.ankrank-leaderboard-view-all:hover {
    opacity: 0.8;
}

.ankrank-player-row {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid #f7f6f5;
    transition: all 0.2s;
}

.ankrank-player-row:hover {
    background: #f7f6f5;
}

.ankrank-player-rank {
    font-size: 1rem;
    font-weight: 700;
    color: #555;
    width: 50px;
}

.ankrank-player-rank.ankrank-top {
    color: #555;
}

.ankrank-player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #81b64c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.ankrank-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ankrank-player-info {
    flex: 1;
}

.ankrank-player-name {
    font-size: 1rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 0.25rem;
}

.ankrank-player-league {
    font-size: 1rem;
    color: #7d7a77;
}

.ankrank-player-rating {
    font-size: 1rem;
    font-weight: 700;
    color: #555;
}

.ankrank-stats-panel {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
}

.ankrank-stats-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #262421;
}

.ankrank-stat-item {
    margin-bottom: 2rem;
}

.ankrank-stat-label {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.ankrank-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #81b64c;
}

.ankrank-stat-bar {
    height: 8px;
    background: #f7f6f5;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.ankrank-stat-bar-fill {
    height: 100%;
    background: #81b64c;
    border-radius: 4px;
}

/* Content Section */
.ankrank-content-section {
    padding: 5rem 2rem;
    background: #fff;
    width: 100%;
}

.ankrank-content-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.ankrank-page-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.ankrank-page-content h1,
.ankrank-page-content h2,
.ankrank-page-content h3,
.ankrank-page-content h4 {
    color: #262421;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.ankrank-page-content p {
    margin-bottom: 20px;
}

.ankrank-page-content a {
    color: #81b64c;
    text-decoration: none;
}

.ankrank-page-content a:hover {
    text-decoration: underline;
}

/* CTA Section */
.ankrank-cta {
    padding: 6rem 2rem;
    background: #413839;
    background-color: #413839;
    text-align: center;
    color: #fff;
    width: 100%;
}

.ankrank-cta-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.ankrank-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
}

.ankrank-cta p {
    font-size: 1.3rem;
    color: #b3b0ad;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Gallery Section */
.ankrank-gallery-section {
    padding: 5rem 2rem;
    background: #fff;
    width: 100%;
}

.ankrank-gallery-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.ankrank-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.ankrank-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ankrank-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ankrank-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ankrank-hero-content {
        flex-direction: column;
        padding: 0 1.5rem;
    }
    
    .ankrank-hero-visual {
        height: 50vh;
        min-height: 400px;
    }

    .ankrank-features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
    }

    .ankrank-rankings-content {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .ankrank-hero,
    .ankrank-hero-2 {
        height: auto;
        min-height: auto;
        align-items: flex-start;
        padding: 2rem 1rem;
    }

    .ankrank-hero-content {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .ankrank-hero-visual {
        height: 50vh;
        min-height: 300px;
    }

    .ankrank-hero-text h1 {
        font-size: 2.5rem;
    }

    .ankrank-hero-buttons {
        flex-direction: column;
    }

    .ankrank-features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .ankrank-rankings-content {
        padding: 0 1rem;
    }

    .ankrank-content-container {
        padding: 0 1rem;
    }

    .ankrank-demo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ankrank-cta-content {
        padding: 0 1rem;
    }

    .ankrank-cta h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .ankrank-hero,
    .ankrank-hero-2 {
        padding: 2rem 1rem;
        height: auto;
        min-height: auto;
        align-items: flex-start;
        overflow: visible;
    }

    .ankrank-hero-content {
        padding: 0 1rem;
        align-items: flex-start;
    }

    .ankrank-brand-name {
        font-size: 2.8rem;
        margin-top: 0;
    }

    .ankrank-hero-text h1 {
        font-size: 2rem;
        margin-top: 0.5rem;
    }

    .ankrank-features {
        padding: 3rem 1rem;
    }

    .ankrank-features-grid {
        padding: 0;
    }

    .ankrank-rankings {
        padding: 3rem 1rem;
    }

    .ankrank-rankings-content {
        padding: 0;
    }

    .ankrank-content-section {
        padding: 3rem 1rem;
    }

    .ankrank-content-container {
        padding: 0;
    }

    .ankrank-cta {
        padding: 4rem 1rem;
    }

    .ankrank-cta-content {
        padding: 0;
    }

    .ankrank-cta h2 {
        font-size: 2rem;
    }
}