﻿/*
Theme Name: Appletix
Theme URI: http://example.com/appletix/
Author: Antigravity
Author URI: http://example.com/
Description: A custom WordPress theme port of the Appletix React application.
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: appletix
*/

:root {
    --primary-color: #c50002;
    /* Brand Red */
    --primary-hover: #a10002;
    --text-color: #1e0a3c;
    --text-secondary: #6f7287;
    --bg-color: #ffffff;
    --bg-secondary: #f8f7fa;
    --border-color: #dbdae3;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 4px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-secondary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
[role="button"] {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

button:active,
.btn:active,
[role="button"]:active {
    transform: scale(0.98);
}

button:hover:not(:disabled),
.btn:hover:not(:disabled),
[role="button"]:hover:not(:disabled) {
    filter: brightness(0.9);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

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

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-ghost {
    background-color: transparent;
    color: var(--text-color);
}

.btn-ghost:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

/* Utils */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.font-bold {
    font-weight: 700;
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mt-8 {
    margin-top: 32px;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Cards */
.card {
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.card-subtitle {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.card-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* Grids */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Enforce uniform card sizes especially on mobile stack where h-100 fails */
.event-card-uniform {
    height: 100%;
}

@media (max-width: 991px) {
    .event-card-uniform {
        height: 400px !important;
    }
}

/* Responsive Hero Slider */
.hero-slider {
    position: relative;
    height: 400px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 250px;
        margin-bottom: 24px;
    }

    .appletix-slide h1 {
        font-size: 28px !important;
    }

    .appletix-slide p {
        font-size: 16px !important;
        margin-bottom: 16px !important;
    }

    .appletix-slide .btn-primary {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}