/* Import Inter font from appomni-cypress */
@import url('../fonts/appomni-cypress/web/inter.css');

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

body {
    font-family: 'Inter', 'InterVariable', 'Arial', sans-serif;
    background: linear-gradient(to bottom, #000000, #ff4500);
    min-height: 100vh;
    color: #ffe5e5;
    line-height: 1.6;
}

/* Sticky Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid #ff4500;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffe5e5;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ffe5e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #ff4500;
    background: rgba(255, 69, 0, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffe5e5;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
.main-content {
    margin-top: 80px; /* Account for fixed header */
    padding: 2rem 0;
    min-height: calc(100vh - 160px); /* Account for header and footer */
}

/* Smooth scrolling with offset for navigation links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 250px; /* Offset for fixed header */
}

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

.logo-section {
    text-align: center;
    padding: 4rem 0;
    padding-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffe5e5;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ffe5e5;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #ff4500;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    box-shadow: 5px 5px 10px 5px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
    background: #e03e00;
}

/* Input with Copy Button Styles */
.input-with-copy {
    position: relative;
    display: flex;
    width: 100%;
}

.input-with-copy .username-input {
    flex: 1;
    padding-right: 3rem; /* Make room for the copy button */
}

.copy-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff4500;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.copy-button:hover {
    background: #e03e00;
    transform: translateY(-50%) scale(1.05);
}

.copy-button:active {
    transform: translateY(-50%) scale(0.95);
}

.copy-button.copied {
    background: #4CAF50;
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1); }
}

/* QR Code Styles */
.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.qr-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 5px 5px 10px 5px rgba(0, 0, 0, 0.5);
    border: 2px solid #ff4500;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-image:hover {
    transform: scale(1.05);
    box-shadow: 8px 8px 15px 8px rgba(0, 0, 0, 0.6);
}

/* Unban Form Styles */
.unban-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: fixed;
    top: 15vh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    z-index: 10;
}

.unban-form-container-2 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.unban-form-container-2 .form-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.unban-form-container-2 label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.username-input {
    padding: 1rem 1.5rem;
    border: 2px solid #ff4500;
    border-radius: 5px;
    background: rgba(0, 0, 0, 1);
    color: #ffe5e5;
    font-size: 1rem;
    font-family: 'Inter', 'InterVariable', 'Arial', sans-serif;
    min-width: 250px;
    max-width: 100%;
    transition: border-color 0.3s ease, background 0.3s ease;
    width: 100%;
    box-shadow: 5px 5px 10px 5px rgba(0, 0, 0, 0.5);
}

.username-input::placeholder {
    color: #999;
}

.username-input:focus {
    outline: none;
    border-color: #e03e00;
    background: rgba(0, 0, 0, 0.9);
}

.alert-message {
    color: white;
    background: rgba(255, 107, 107, 1);
    border: 1px solid #ff6b6b;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin: 1rem auto;
    max-width: 400px;
    text-align: center;
    font-weight: 500;
    position: fixed;
    z-index: 0;
    transition: opacity 0.5s ease-in-out;
}

.alert-message.fade-out {
    opacity: 0;
}

.spacer {
    height: 200vh;
}

.form-field > label {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.submit-notice {
    font-size: 1.2rem;
    color: white;
    text-align: center;
}

#userParam, #order_code {
    background: rgb(103, 74, 53);
    color: rgb(0, 0, 0);
}

.thank-you-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.thank-you-message, .error-message {
    font-size: 1.2em;
    margin: 20px 0;
    color: #ffe5e5;
}

.status-link-container {
    margin-top: 30px;
}

.status-link-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #e03e00;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.status-link-button:hover {
    background-color: #ff4500;
    color: white;
    text-decoration: none;
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.status-link-container {
    margin-top: 30px;
}

.cta-button-container {
    text-align: center;
}

/* Responsive adjustments for unban form */
@media (max-width: 768px) {
    .unban-form-container {
        width: 90%;
        max-width: 400px;
        padding: 0 1rem;
    }
    
    .unban-form-container-2 {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .username-input {
        min-width: 200px;
        max-width: 100%;
        width: 100%;
    }
}

/* iPhone Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .unban-form-container {
        top: 20vh !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* Additional iPhone specific media query for smaller screens */
@media screen and (max-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
    .unban-form-container {
        top: 25vh !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* Hand Counter Styles */
.counter-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.hand-counter {
    position: relative;
    width: 200px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #d0d0d0;
    overflow: hidden;
}

.counter-display {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.digit {
    width: 20px;
    height: 30px;
    background: #000;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    text-shadow: 0 0 3px #fff;
    position: relative;
    overflow: hidden;
}

.digit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

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

.counter-button {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #c0c0c0;
}

.counter-button::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #b0b0b0;
    border-radius: 50%;
    border: 1px solid #999999;
}

.reset-knob {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #d0d0d0;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #b0b0b0;
}

.reset-knob::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #999999;
    border-radius: 50%;
}

/* Counter Animation */
.digit.rolling {
    animation: rollDigit 0.1s ease-out;
}

@keyframes rollDigit {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Placeholder Sections */
.section {
    padding: 3rem 0;
    padding-top: 1rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffe5e5;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.placeholder-card {
    background: rgba(255, 69, 0, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.placeholder-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffe5e5;
}

.placeholder-card p {
    color: #ffe5e5;
    opacity: 0.8;
}

/* Reviews Carousel */
.reviews-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
}

.reviews-carousel {
    display: flex;
    gap: 2rem;
}

.review-card {
    flex: 0 0 300px;
    background: rgba(255, 69, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

.profile-picture {
    margin-bottom: 1rem;
}

.profile-picture img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ff4500;
    object-fit: cover;
}

.stars {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.review-text {
    color: #ffe5e5;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.reviewer-name {
    color: #ff4500;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: rgba(255, 69, 0, 0.2);
    border: 2px solid #ff4500;
    color: #ffe5e5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #ff4500;
    color: #000;
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Sticky Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-top: 2px solid #ff4500;
    padding: 0.2rem 0;
    z-index: 1000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-text {
    color: #ffe5e5;
    font-size: 0.5rem;
}

.logo {
    border-radius: 0.5em;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

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

    .mobile-menu-toggle {
        display: block;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .placeholder-grid {
        grid-template-columns: 1fr;
    }

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

    .review-card {
        flex: 0 0 280px;
        padding: 1.5rem;
    }

    .carousel-controls {
        margin-top: 1.5rem;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* QR code tablet adjustments */
    .qr-image {
        max-width: 180px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        margin-top: 12vh;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .placeholder-card {
        padding: 1rem;
    }

    .review-card {
        flex: 0 0 250px;
        padding: 1rem;
    }

    .profile-picture img {
        width: 60px;
        height: 60px;
    }

    .stars {
        font-size: 1.2rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .reviewer-name {
        font-size: 1rem;
    }

    .logo {
        border-radius: 0.5em;
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
    
    /* Additional mobile form adjustments */
    .unban-form-container-2 {
        width: 95%;
        max-width: 350px;
        padding: 0 0.5rem;
    }
    
    .username-input {
        min-width: 150px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-field {
        margin-bottom: 0.8rem;
    }
    
    .form-field label {
        font-size: 0.85rem;
    }
    
    /* QR code mobile adjustments */
    .qr-image {
        max-width: 150px;
        padding: 8px;
    }
    
    /* Copy button mobile adjustments */
    .copy-button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .input-with-copy .username-input {
        padding-right: 2.5rem;
    }
}

/* Unbanned Chart Styles */
.unbanned-chart {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.2);
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Consolas', monospace;
}

.unbanned-chart thead {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
}

.unbanned-chart th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    border-bottom: 2px solid #ff4500;
}

.unbanned-chart td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
    color: #ffe5e5;
    font-size: 0.95rem;
}

.unbanned-chart tbody tr {
    transition: background-color 0.3s ease;
}

.unbanned-chart tbody tr:hover {
    background-color: rgba(255, 69, 0, 0.1);
}

.unbanned-chart tbody tr:last-child td {
    border-bottom: none;
}

/* Fade effect for rows 5-10 */
.fade-row {
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
}

.fade-row:nth-child(5) {
    opacity: 0.8;
}

.fade-row:nth-child(6) {
    opacity: 0.6;
}

.fade-row:nth-child(7) {
    opacity: 0.4;
}

.fade-row:nth-child(8) {
    opacity: 0.25;
}

.fade-row:nth-child(9) {
    opacity: 0.1;
}

.fade-row:nth-child(10) {
    opacity: 0.01;
}

/* Status column styling */
.unbanned-chart td:nth-child(3) {
    text-align: center;
    font-weight: 600;
}

/* Success badge styling */
.success-badge {
    background-color: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Failed badge styling */
.failed-badge {
    background-color: #F44336;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Processing row styling */
.unbanned-chart td:nth-child(3):contains("Processing") {
    color: #FF9800;
}

/* Responsive design for the chart */
@media (max-width: 768px) {
    .unbanned-chart {
        font-size: 0.7rem;
        table-layout: fixed;
        width: 100%;
        word-wrap: break-word;
    }
    
    .unbanned-chart th,
    .unbanned-chart td {
        padding: 0.4rem 0.3rem;
        word-wrap: break-word;
        word-break: break-all;
        white-space: normal;
        line-height: 1.2;
    }
    
    .unbanned-chart th {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .unbanned-chart td {
        font-size: 0.7rem;
    }
    
    /* Set column widths for mobile */
    .unbanned-chart th:nth-child(1),
    .unbanned-chart td:nth-child(1) {
        width: 25%;
    }
    
    .unbanned-chart th:nth-child(2),
    .unbanned-chart td:nth-child(2) {
        width: 50%;
    }
    
    .unbanned-chart th:nth-child(3),
    .unbanned-chart td:nth-child(3) {
        width: 25%;
    }
    
    /* Adjust badge sizes for mobile */
    .success-badge,
    .failed-badge {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
}
