/* Responsive Styles */

/* WordPress Admin Bar Adjustment */
@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 0px; /* WP admin bar height on mobile */
    }

    body.admin-bar .hero {
        min-height: calc(100vh - 46px); /* Adjust for mobile admin bar */
        padding-top: 116px; /* 70px header + 46px admin bar */
    }

    body.admin-bar .mobile-menu {
        top: 0px; /* 70px header + 46px admin bar */
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        position: relative;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-light);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
        background-color: var(--background-dark);
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

    .mobile-menu .nav-item {
        font-size: 1.1rem;
        text-align: center;
        height: auto;
        padding: 1rem 0;
    }

    .mobile-menu .button {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        height: auto;
        padding: 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Header Styles for Mobile */
    header {
        height: 70px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: var(--background-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        padding: 0;
    }

    .nav-container {
        padding: 0 1rem;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    /* Hero Section Mobile Styles */
    .hero-name .first-name,
    .hero-name .last-name {
        font-size: 3rem;
    }

    .hero-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .hero-banner h2 {
        font-size: 1.2rem;
    }

    .hero-banner .button {
        width: 100%;
        justify-content: center;
    }

    /* Adjust hero section for fixed header */
    .hero {
        padding-top: 70px;
        min-height: 100vh;
        margin-top: 0;
    }

    body.admin-bar .hero {
        padding-top: 116px;
        min-height: calc(100vh - 46px);
    }
}

/* General Responsive Styles */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }

    /* Profile Section */
    .profile-content {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        position: relative;
    }

    .footer-nav {
        position: relative;
        left: 0;
        transform: none;
        flex-direction: column;
        gap: 1rem;
    }

    .social-links {
        position: relative;
        right: 0;
        margin: 0;
    }
}

/* Contact Responsive Adjustments */
@media (max-width: 768px) {
    .contact-page {
        padding: 3rem 1rem; /* Reduce padding on smaller screens */
    }

    .contact-container {
        max-width: 100%; /* Allow full width on mobile */
        padding: 0 1rem; /* Maintain padding */
    }

    .contact-form {
        padding: 1.5rem; /* Reduce padding for mobile */
    }

    .form-group {
        margin-bottom: 1rem; /* Reduce margin for mobile */
    }

    .form-group input,
    .form-group textarea {
        padding: 0.5rem; /* Reduce padding for mobile */
    }
} 

/* Responsive Design */
@media (max-width: 768px) {
    .oshirase-title {
        font-size: 20px;
    }
    
    .news-date, 
    .news-category {
        font-size: 12px;
    }

    .oshirase-meta {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .oshirase-text {
        font-size: 14px;
    }

    .oshirase-body {
        font-size: 14px;
    }

    .ticket-cta h2 {
        font-size: 18px;
    }

    .ticket-cta p {
        font-size: 12px;
    }
	.home-button {
        margin: 20px 0;
    }

    .home-button .button {
        font-size: 16px;
        padding: 10px 20px;
        width: 80%;  /* Makes it more touch-friendly */
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .oshirase-single {
        padding: 6rem 1rem 3rem;
    }

    .oshirase-title {
        font-size: 2rem;
    }

    .oshirase-body {
        font-size: 1rem;
        line-height: 1.6;
    }

    .ticket-cta {
        padding: 2rem;
    }

    .ticket-cta h2 {
        font-size: 1.8rem;
    }

    .ticket-cta p {
        font-size: 1rem;
    }

    .ticket-cta .button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}


@media (max-width: 768px) {
    .achievements {
        padding: 3rem 1rem;
    }

    .achievements h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .stats-grid {
        gap: 2rem;
        max-width: 100%;
    }

    .stats-row {
        gap: 1rem;
        grid-template-columns: 1fr !important;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        width: 100px;
    }

    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
	.highlight-achievements {
        padding: 15px;
    }

    .highlight-title {
        font-size: 1.6rem;
    }

    .highlight-item {
        font-size: 1rem;
    }

    .highlight-intro {
        font-size: 1.1rem;
    }

    .other-achievements-title {
        font-size: 1.3rem;
    }

    .other-achievements li {
        font-size: 1rem;
    }

}

@media (max-width: 480px) {
    .stat-item {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.8rem;
        width: 80px;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .sponsor-cta {
        flex-direction: column;
        height: auto;
    }

    .sponsor-cta-image {
        width: 100%;
        height: 300px;
    }

    .sponsor-cta-content {
        width: 100%;
        padding: 2rem 1rem;
    }

    .sponsor-cta-content h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .sponsor-cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-light);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-item,
    .nav-links .button {
        font-size: 1.2rem;
        padding: 1rem 1rem;
    }

    .nav-links .button {
        margin-top: 0.25rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        position: relative;
    }

    .footer-nav {
        position: relative;
        left: 0;
        transform: none;
        flex-direction: column;
        gap: 1rem;
    }

    .social-links {
        position: relative;
        right: 0;
        margin: 0;
    }

    .hero {
        min-height: 150vh;
        padding-top: 70px;
    }

    .hero-content {
        padding: 0 1rem;
        width: 100%;
    }

    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }

    .nav-container {
        padding: 0 1rem;
        width: 100%;
    }

    .footer-container {
        padding: 0 1rem;
        width: 100%;
    }

    .profile {
        padding: 4rem 1rem;
    }

    .profile-content {
        padding: 0 1rem;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .profile-text .japanese-title {
        font-size: 1.2rem;
    }

    .profile-text h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .profile-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .profile-image {
        height: 400px;
    }

    .stats-grid {
        gap: 2rem;
    }

    .stats-row {
        gap: 2rem;
    }

    .stats-row:first-child {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row:last-child {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-number {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        width: 150px;
    }

    .stat-label {
        font-size: 1rem;
    }

    .story-slider {
        height: 300px;
    }
    
    .slide {
        min-width: 100%;
    }
    
    .story-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .slider-arrow {
        width: 80px;
        height: 40px;
        font-size: 1.2rem;
    }

    .sponsor {
        padding: 4rem 1rem;
    }

    .sponsor-content {
        padding: 0 1rem;
        width: 100%;
    }

    .sponsor-text .japanese-title {
        font-size: 1.2rem;
    }

    .sponsor-text h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .sponsor-categories {
        gap: 3rem;
    }

    .main-sponsors h3, .official-sponsors h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        font-weight: 300;
    }

    .sponsor-grid {
        gap: 2rem;
        padding: 1.5rem;
    }

    .sponsor-grid img {
        max-width: 150px;
    }

    .news-list-container {
        width: 100%;
        margin: 0;
    }

    .news-item {
        padding: 1rem 0;
    }

    .news-date {
        font-size: 1rem;
    }

    .news-category {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        width: 90px;
    }

    .news-title {
        font-size: 0.9rem;
    }

    .news-arrow {
        width: 35px;
        height: 35px;
		top: 82%;
    }

    .news-next-page {
        width: 80px;
        height: 40px;
    }

    .news-text .japanese-title {
        font-size: 1.2rem;
    }

    .news-text h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .ticket-cta-section {
        padding: 3rem 1rem;
    }

    .ticket-cta-section .container {
        padding: 0;
        width: 100%;
    }

    .sponsor-cta {
        width: 100%;
    }

    .sponsor-cta-content {
        padding: 2rem 1rem;
    }
	/*Contact form fix*/
	.category-buttons {
		flex-direction: column;
	}
	
	#form-scroll {
		font-size: 1.5rem;
		margin-top: 1rem;
	}
}
