/* Base Styles */
:root {
    --primary-color: #ff5500;
    --secondary-color: #0088cc;
    --accent-color: #6a00ff;
    --dark-color: #151825;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Header Styles */
header {
    background-color: var(--dark-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 5px;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/5.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Posts */
.featured-posts {
    padding: 80px 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: var(--dark-color);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post h3 {
    padding: 20px 20px 10px;
    font-size: 18px;
}

.post p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

.read-more {
    display: inline-block;
    margin: 0 20px 20px;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.read-more::after {
    content: "→";
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 10px;
}

/* Custom Frame for Images */
.custom-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.custom-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
}

.custom-frame::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: calc(var(--border-radius) - 5px);
    pointer-events: none;
    z-index: 1;
}

.custom-frame img {
    transition: var(--transition);
}

.custom-frame:hover img {
    transform: scale(1.05);
}

/* Beginners Zone */
.beginners-zone {
    padding: 80px 0;
    background-color: var(--dark-color);
    color: white;
}

.beginners-zone h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
}

.beginners-zone > .container > p {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
}

.beginners-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.beginners-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.beginners-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.beginners-text ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.beginners-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.beginners-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.beginners-image .custom-frame {
    border-radius: var(--border-radius);
}

.beginners-image .custom-frame::before {
    border-radius: var(--border-radius);
}

/* Tournaments Preview */
.tournaments-preview {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.tournaments-preview h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tournament {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.tournament:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tournament h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.tournament .date, .tournament .location {
    margin-bottom: 10px;
    color: var(--text-light);
}

.tournament .btn {
    margin-top: 15px;
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 20px;
    font-size: 36px;
}

.newsletter p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 16px;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 30px;
    background-color: var(--dark-color);
}

.newsletter-form .btn:hover {
    background-color: black;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 9999;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-accept {
    background-color: var(--success-color);
}

.btn-settings {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.btn-reject {
    background-color: var(--danger-color);
}

.cookie-policy {
    font-size: 14px;
}

.cookie-policy a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Blog Page */
.blog-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/6.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.blog-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.blog-container {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-post {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-post-image {
    height: 220px;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    padding: 25px;
}

.blog-post-meta {
    display: flex;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 14px;
}

.blog-post-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.blog-post-meta svg {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.blog-post-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.blog-post-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Blog Post Detail */
.post-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/6.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    color: white;
    text-align: center;
}

.post-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.post-image {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-body h2 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.post-body h3 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.post-body p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-body ul, .post-body ol {
    margin: 20px 0;
    padding-left: 40px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    background-color: #f5f5f5;
    margin: 25px 0;
    font-style: italic;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.post-navigation a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* About Page */
.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-card-content {
    padding: 20px;
}

.team-card h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.team-card p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-details {
    margin-top: 40px;
}

.contact-details div {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-details svg {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: var(--primary-color);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Tournaments Page */
.tournaments-section {
    padding: 80px 0;
}

.tournament-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.tournament-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    transition: var(--transition);
}

.tournament-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tournament-image {
    width: 300px;
    min-width: 300px;
}

.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-details {
    padding: 30px;
    flex: 1;
}

.tournament-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.tournament-meta {
    display: flex;
    margin-bottom: 20px;
    color: var(--text-light);
}

.tournament-meta div {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.tournament-meta svg {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.tournament-description {
    margin-bottom: 20px;
    line-height: 1.8;
}

.tournament-prizes {
    margin-bottom: 20px;
}

.tournament-prizes h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tournament-prizes ul {
    padding-left: 20px;
}

.tournament-actions {
    display: flex;
    gap: 15px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(-50px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon svg {
    width: 30px;
    height: 30px;
}

.modal h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.modal p {
    margin-bottom: 25px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .beginners-content {
        grid-template-columns: 1fr;
    }
    
    .beginners-image {
        order: -1;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .tournament-item {
        flex-direction: column;
    }
    
    .tournament-image {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn {
        border-radius: var(--border-radius);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .posts-grid, .tournaments-grid, .blog-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 28px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}
