/* Myanmar Government Website Styles */
/* Official Color Scheme:
   - Primary: #8B0000 (Dark Red/Maroon)
   - Secondary: #A52A2A (Brown Red)
   - Accent: #FFD700 (Gold)
   - Success: #006B3F (Green)
   - Background: #F9FAFB (Light Gray)
   - Text: #1F2937 (Dark Gray)
*/

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

body {
    font-family: 'Noto Sans Myanmar', 'Noto Serif', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #F9FAFB;
    color: #1F2937;
}

/* Myanmar Font Classes */
.font-myanmar {
    font-family: 'Noto Sans Myanmar', 'Padauk', 'Myanmar3', sans-serif;
    font-weight: 400;
}

.font-serif {
    font-family: 'Noto Serif', 'Times New Roman', serif;
}

/* Official Government Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-left: 1px solid #E5E7EB;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B0000, #A52A2A);
    border-radius: 6px;
    border: 2px solid #F3F4F6;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #A52A2A, #8B0000);
}

/* Hide scrollbar for specific elements */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Myanmar Flag Colors Animation */
@keyframes flagWave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(2px);
    }
}

.flag-animation {
    animation: flagWave 3s ease-in-out infinite;
}

/* Government Official Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes goldShine {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.gold-shine {
    animation: goldShine 2s ease-in-out infinite;
}

/* Official Navigation Styles */
nav {
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

nav a {
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Official Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Official Card Styles */
.card-official {
    background: white;
    border: 2px solid #E5E7EB;
    border-left: 4px solid #8B0000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-official:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(139, 0, 0, 0.15),
                0 0 20px rgba(255, 215, 0, 0.2);
    border-left-color: #FFD700;
}

/* Image hover effects with government style */
.hover-zoom {
    overflow: hidden;
    position: relative;
}

.hover-zoom::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.7s;
}

.hover-zoom:hover::after {
    left: 100%;
}

.hover-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-zoom:hover img {
    transform: scale(1.15);
}

/* Official Gradient Text */
.gradient-text-official {
    background: linear-gradient(135deg, #8B0000 0%, #FFD700 50%, #A52A2A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Badge Styles */
.badge-official {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.badge-official:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
}

.badge-gold {
    background: linear-gradient(135deg, #FFD700, #FDB813);
    color: #8B0000;
}

.badge-green {
    background: linear-gradient(135deg, #006B3F, #047857);
    color: white;
}

/* Section Headers */
.section-header {
    position: relative;
    padding-left: 1rem;
    border-left: 6px solid #FFD700;
}

.section-header::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #8B0000, #FFD700);
    animation: pulse 2s ease-in-out infinite;
}

/* Official Border Styles */
.border-official {
    border: 3px solid #8B0000;
    position: relative;
}

.border-official::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #FFD700, transparent, #FFD700);
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.border-official:hover::before {
    opacity: 1;
}

/* Loading animation for official content */
@keyframes officialPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.loading-official {
    animation: officialPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Official text shadow */
.text-shadow-official {
    text-shadow: 2px 2px 4px rgba(139, 0, 0, 0.3),
                 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.mobile-menu-enter {
    animation: slideDown 0.4s ease-out forwards;
}

/* Focus styles for accessibility with government colors */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1);
}

/* Article excerpt */
.article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* Sticky post badge with shine effect */
.sticky-badge {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFD700, #FDB813);
}

.sticky-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

/* Official input styles */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    font-family: 'Noto Sans Myanmar', sans-serif;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: #8B0000;
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1),
                0 0 20px rgba(255, 215, 0, 0.2);
}

/* Official link styles */
a {
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Print styles for official documents */
@media print {
    nav,
    aside,
    button,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .border-official {
        border: 2px solid black;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }

    article {
        page-break-inside: avoid;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 13px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Official seal animation */
@keyframes rotateSeal {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.seal-rotate {
    animation: rotateSeal 20s linear infinite;
}

/* Official footer styles */
footer {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    border-top: 4px solid #FFD700;
    box-shadow: 0 -4px 20px rgba(139, 0, 0, 0.3);
}

footer a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Myanmar number font */
.myanmar-numbers {
    font-feature-settings: 'mymr';
}

/* Official table styles (for future use) */
table {
    border-collapse: collapse;
    width: 100%;
    border: 2px solid #8B0000;
}

th {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E5E7EB;
}

tr:nth-child(even) {
    background: #F9FAFB;
}

tr:hover {
    background: #FEF3C7;
}

/* Official notification styles */
.notification-official {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    padding: 1rem 1.5rem;
    border-left: 4px solid #FFD700;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Marquee Animation for Categories Navigation */
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 1.5rem;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    min-width: 100%;
    animation: scroll-right 30s linear infinite;
}

@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}
