/*
Theme Name: Robotics Event Hub
Author: Noyan Bahadir
Description: A modern, sleek, and high-tech WordPress theme dedicated to robotics competitions and events in the USA and Turkey.
Version: 1.0.0
Text Domain: robotics-hub
*/

/* --------------------------------------------------------------------------
 * Reset and Base Styles
 * -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0f18;
    --bg-card: #151d2b;
    --bg-light: #f4f6fa;
    --text-primary: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #94a3b8;
    --accent-teal: #14b8a6;
    --accent-blue: #3b82f6;
    --accent-neon: #60a5fa;
    --border-color: #334155;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-teal);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
 * Layout Utility
 * -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-dark-section {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.bg-dark-section h1,
.bg-dark-section h2,
.bg-dark-section h3 {
    color: #fff;
}

/* --------------------------------------------------------------------------
 * Header & Nav
 * -------------------------------------------------------------------------- */
.site-header {
    background: rgba(10, 15, 24, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-branding a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-branding a span {
    color: var(--accent-teal);
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-neon);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item>a::after {
    width: 100%;
}

.header-action .btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
    color: #fff;
}

/* --------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--accent-teal);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--accent-teal);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent-teal);
    color: #fff;
}

/* --------------------------------------------------------------------------
 * Hero Section
 * -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --------------------------------------------------------------------------
 * Cards / Grids
 * -------------------------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* Dark variant cards */
.bg-dark-section .card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.bg-dark-section .card-title {
    color: #fff;
}

.bg-dark-section .card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
 * Tables (Teams & Winners)
 * -------------------------------------------------------------------------- */
.table-responsive {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: #f8fafc;
}

.country-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.tr-badge {
    background: #E30A17;
}

/* Turkey Red */
.us-badge {
    background: #002868;
}

/* US Blue */

/* --------------------------------------------------------------------------
 * Embedded Media Wrapper
 * -------------------------------------------------------------------------- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
 * Page Headers
 * -------------------------------------------------------------------------- */
.page-header {
    background: var(--bg-dark);
    padding: 6rem 0 3rem;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
 * Calendar Lists
 * -------------------------------------------------------------------------- */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent-blue);
    transition: transform 0.2s ease;
}

.event-item:hover {
    transform: translateX(5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-heading);
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.event-date .month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-info {
    flex: 1;
    margin-left: 1.5rem;
}

.event-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.event-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

/* --------------------------------------------------------------------------
 * Single Post / Blog
 * -------------------------------------------------------------------------- */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.single-post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.single-post-content h2,
.single-post-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-thumbnail {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.site-footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent-teal);
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-teal);
    margin-top: 1.5rem;
}

.download-link:hover {
    color: #fff;
}