/*
Theme Name: Orienteering Club LV
Description: Orienteering club theme with Latvian FullCalendar
Version: 1.2
*/
body
{
	font-family:Arial,Helvetica,sans-serif;
	margin:0;
	/* background-image: url("images/Background.png"); */
	background:#ccffcc;
	color:#222;
}

h1, h2, h3
{
    color:#2a7a3a;
}

h3 a {
    color:#2a7a3a;
    text-decoration: none;
}

/* ===== Header Layout ===== */
.site-header {
    background: #3b2416; /* deep brown */
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
	justify-content: space-between;
    align-items: center;
    gap: 30px; /* space between logo and menu */
}

/* ===== Main Menu ===== */

.main-navigation {
	margin-top: 85px;
    flex-grow: 1;
}

.main-navigation ul
{
    list-style-type: none;	
	padding: 0;
	overflow: hidden;
}

.main-navigation ul li
{
    float: left;
	margin: 5px;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

.main-menu a {
    text-decoration: none;
    font-weight: 600;
}

.main-menu li {
    margin-left: 20px;
}

/* Menu item rectangle */
.main-menu li a {
    display: block;
    background: #5a3a26; /* brown rectangle */
    color: #fff3d6;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Hover state */
.main-menu li a:hover {
    background: #f59e0b; /* orange */
    color: #3b2416;
}

/* Active menu item */
.main-menu .current-menu-item > a {
    background: #f7c948; /* yellow */
    color: #3b2416;
}

/* Hide toggle button on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* ============================= */
/* Mobile styles */
/* ============================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
    }

    .main-navigation.active {
        display: block;
    }

    .main-menu {
        flex-direction: column;
        background: #2a7a3a; /* green background for mobile menu */
        padding: 10px 0;
    }

    .main-menu li {
        margin: 10px 0;
        text-align: center;
    }
}

header.site-header
{
	background:#2a7a3a;
	color:#fff;
	padding:18px 24px;
}

hr
{
	background-color: #474747;
	height: 8px;
	margin-top: -10px;
}

.container
{
	max-width:1100px;
	margin:24px auto;
	padding:0 18px;
}

.event-single
{
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border:1px solid #474747;
}

.event-card
{
	display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 6px;
    border:1px solid #474747;	
}

.event-thumb {
    float: right;
    border: solid 2px gray;
    /* margin-left: 15px;
    margin-bottom: 10px;*/
}

.event-thumb img {
    max-width: 180px;
    height: auto;
    border-radius: 6px;
}

/* Clear float after each card */
.event-card::after {
    content: "";
    display: block;
    clear: both;
}

.event-content {
    flex: 1;
}

.club-badge {
    width: 75px;
    /* height: 75px; */
    min-width: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.club-badge img {
    max-width: 65px;
    max-height: 65px;
}

@media (max-width: 768px) {
    .event-thumb {
        float: none;
        margin: 0 0 0 0;
        text-align: center;
    }

    .event-thumb img {
        max-width: 100%;
    }
}

footer.site-footer
{
	background:#111;
	color:#ddd;
	padding:18px 24px;
	margin-top:40px;
}

.map-canvas
{
	height:420px;
    background-color: white;
	border:2px solid gray;
	margin:12px 0;
}

.map-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.legend-color {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border-radius: 50%;
  border: 1px solid #000;
}

.event-results {
  margin-top: 30px;
}

.btn-results {
  display: inline-block;
  background: #1b7f3b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-results:hover {
  background: #145f2d;
  color: #fff;
}

/* ===== Posts (non-event) ===== */

.post-card {
	border-radius: 6px;
    border:1px solid #474747;
	padding: 14px;
	margin-bottom: 12px;
	border-left: 4px solid #2a7a3a; /* zaļš – atšķiras no event */
	background: #fff;
}

.post-title {
	margin-top: 0;
	margin-bottom: 6px;
}

.post-title a {
	color: #2a7a3a;
	text-decoration: none;
}

.post-title a:hover {
	text-decoration: underline;
}

.post-meta {
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
}

.post-thumb {
	margin-bottom: 10px;
}

.post-excerpt {
	margin-bottom: 10px;
	line-height: 1.5;
}

.post-readmore {
	display: inline-block;
	color: #1b7f3b;
	font-weight: 600;
	text-decoration: none;
}

.post-readmore:hover {
	text-decoration: underline;
}

/* ===== Single Post ===== */
.post-single
{
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border:1px solid #474747;
}

.post-single-title {
	margin-top: 0;
	margin-bottom: 8px;
	color: #2a7a3a;
}

.post-single-meta {
	font-size: 14px;
	color: #666;
	margin-bottom: 14px;
}

.post-single-thumb {
	margin-bottom: 16px;
}

.post-single-content {
	line-height: 1.7;
	font-size: 16px;
}

/* ===== Pages ===== */

.page-title {
	margin-top: 0;
	color: #2a7a3a;
}

.page-body {
	line-height: 1.7;
}

/* ===== Bilžu galerijas režģim ===== */
.gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.gallery-item h3 {
    margin-top: 10px;
    font-size: 1.1em;
}

/* ===== Kalendāra stils ===== */
.fc .fc-daygrid-event {
    font-weight: 700;
}

.fc .fc-daygrid-event {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    align-items: center;
    text-align: center;
    font-weight: 700;
}

.fc .fc-col-header-cell {
    background-color: #2a7a3a;  /* Zaļš fons */
}

.fc .fc-col-header-cell a {
    color: #ffffff;             /* Balts teksts */
    font-weight: 600;           /* Nedaudz izcelt */
}

#calendar {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border:1px solid #474747;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 10px 0 15px 0;
    align-items: center;
}

.legend-item {
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.legend-item.active {
    opacity: 1;
    font-weight: 600;
}

.legend-item:hover {
    opacity: 1;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 6px;
    border: 1px solid #ccc;
	display: inline-block;
}

.legend-name {
    line-height: 1;
}
