/*
 * File: style.css
 * Path: /public/assets/css/style.css
 * Version: v1.0
 * Project: Dirty Birdies Tournament
 * Purpose: Main stylesheet for the Dirty Birdies Tournament website.
 *
 * Usage: Linked in all HTML views.
 * Author: Manus
 * Last Updated: 2025-08-16
 */

:root {
    --primary-color: #28a745; /* Green */
    --secondary-color: #007bff; /* Blue */
    --accent-color: #ffc107; /* Yellow */
    --text-color: #343a40; /* Dark Gray */
    --light-text-color: #6c757d; /* Medium Gray */
    --background-color: #f8f9fa; /* Light Gray */
    --white-color: #ffffff;
    --border-color: #dee2e6;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

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

header {
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

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

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

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

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #218838;
}

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

.btn-secondary:hover {
    background-color: #0056b3;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 80px 0;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Content Sections */
.content-section {
    background-color: var(--white-color);
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-section h1, .content-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.content-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Highlights Section */
.highlights {
    background-color: var(--white-color);
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.highlights h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.highlights ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.highlights ul li {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px 20px;
    margin: 10px;
    font-size: 1.1em;
    text-align: center;
    flex: 1 1 calc(33% - 40px); /* Three items per row, with margin */
    box-sizing: border-box;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group .required::after {
    content: "*";
    color: red;
    margin-left: 5px;
}

/* Stripe Payment Element */
#payment-element {
    margin-bottom: 20px;
}

#payment-message {
    color: red;
    margin-top: 10px;
}

.hidden {
    display: none;
}

/* Tables */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th,
.results-table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

.results-table th {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.results-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.note {
    font-style: italic;
    color: var(--light-text-color);
    margin-top: 20px;
}

/* Sponsors Page */
.sponsor-tier-title {
    color: var(--secondary-color);
    margin-top: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sponsor-item {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sponsor-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.sponsor-item h3 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.sponsor-item a {
    text-decoration: none;
    color: inherit;
}

.cta-sponsor {
    margin-top: 50px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .highlights ul li {
        flex: 1 1 100%;
    }
}


