/* ========================================
   HOWTOPLAY.CSS - How To Play Page
======================================== */

/* Page Transition Styles */
.fade-transition {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.fade-enter {
    opacity: 1;
}

.fade-leave {
    opacity: 0;
}

/* Slide Transition Styles */
.slide-transition {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.slide-enter {
    transform: translateY(0);
    opacity: 1;
}

.slide-leave {
    transform: translateY(20px);
    opacity: 0;
}

/* ---- How To Play Section ---- */
.htp-section {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 120px;
    overflow: hidden;
}

.htp-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('../assets/background/background7.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: brightness(0.4);
}

.htp-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(9, 8, 9, 0.75);
}

.htp-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Header ---- */
.htp-header {
    text-align: center;
    margin-bottom: 50px;
}

.htp-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #f4ca64;
    background: radial-gradient(circle at 30% 30%, rgba(255, 232, 160, 0.2), rgba(33, 27, 19, 0.85));
    border: 2px solid rgba(255, 221, 132, 0.34);
    border-radius: 50%;
    text-shadow: 0 0 20px rgba(250, 189, 47, 0.6);
    box-shadow: 0 0 30px rgba(184, 138, 0, 0.2), inset 0 0 20px rgba(255, 221, 132, 0.1);
    animation: htp-glow 3s ease-in-out infinite;
}

@keyframes htp-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(184, 138, 0, 0.2), inset 0 0 20px rgba(255, 221, 132, 0.1); }
    50% { box-shadow: 0 0 50px rgba(184, 138, 0, 0.4), inset 0 0 30px rgba(255, 221, 132, 0.2); }
}

.htp-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.htp-subtitle {
    color: var(--subtext);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   PLATFORM CARDS
======================================== */
.htp-platforms {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.htp-platform-card {
    background: rgba(30, 30, 38, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.htp-platform-card:hover {
    border-color: var(--border-light);
}

.htp-platform-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    background: rgba(184, 138, 0, 0.06);
    border-bottom: 1px solid rgba(255, 228, 156, 0.1);
}

.htp-platform-header i {
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 138, 0, 0.12);
    border-radius: 10px;
    color: #f4ca64;
}

.htp-platform-header h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.htp-platform-body {
    padding: 24px 28px;
}

/* ---- App List (vertical) ---- */
.htp-app-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.htp-app-detail {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 228, 156, 0.08);
    border-radius: 14px;
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.htp-app-detail:hover {
    border-color: rgba(255, 228, 156, 0.2);
}

/* ---- Compact Header Row: icon + title + tag + buttons ---- */
.htp-app-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.htp-app-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid rgba(255, 228, 156, 0.15);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    flex-shrink: 0;
}

.htp-app-info {
    flex: 1;
    min-width: 0;
}

.htp-app-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
}

.htp-app-tag {
    display: inline-block;
    padding: 1px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #f4ca64;
    background: rgba(184, 138, 0, 0.12);
    border: 1px solid rgba(255, 228, 156, 0.15);
    border-radius: 5px;
}

.htp-app-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ---- Steps ---- */
.htp-steps {
    padding-left: 20px;
    margin: 12px 0 0;
}

.htp-steps li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--subtext);
    line-height: 1.6;
}

.htp-steps {
    padding-left: 0;
    margin: 12px 0 0;
    counter-reset: step-counter;
}

.htp-steps li {
    position: relative;
    padding: 8px 0 8px 32px;
    font-size: 0.9rem;
    color: var(--subtext);
    line-height: 1.6;
    list-style: none;
}

.htp-steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(184, 138, 0, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Code inline ---- */
.htp-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    font-family: monospace;
    font-size: 0.82rem;
    color: #f4ca64;
    background: rgba(184, 138, 0, 0.1);
    border: 1px solid rgba(255, 228, 156, 0.15);
    border-radius: 6px;
    word-break: break-all;
}

.host-config-code {
    position: relative;
    margin: 10px 0;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 228, 156, 0.1);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #f4ca64;
    line-height: 1.5;
}

.host-config-code code {
    display: block;
    margin-right: 30px;
    word-break: break-all;
}

.htp-code-copy {
    background: none;
    border: none;
    color: rgba(255, 228, 156, 0.4);
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
    transition: color 0.2s;
    display: inline-flex;
    position: absolute;
    top: 10px;
    right: 10px;
}

.htp-code-copy:hover {
    color: #f4ca64;
}

.htp-code-copy.copied {
    color: #3ba55c;
}

/* ---- Buttons ---- */
.htp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.htp-btn.primary {
    color: var(--bg);
    background: linear-gradient(135deg, var(--primary), var(--gold-highlight));
}

.htp-btn.primary:hover {
    background: linear-gradient(135deg, var(--gold-highlight), var(--primary));
    box-shadow: 0 4px 15px rgba(184, 138, 0, 0.4);
    transform: translateY(-2px);
}

.htp-btn.secondary {
    color: var(--gold-highlight);
    background: transparent;
    border-color: var(--gold-base);
}

.htp-btn.secondary:hover {
    background: var(--gold-base);
    color: var(--bg);
    transform: translateY(-2px);
}

/* ========================================
   HOST CONFIGURATION SECTION
======================================== */
.htp-host-section {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 228, 156, 0.12);
    border-radius: 20px;
    padding: 40px 36px;
    margin-bottom: 40px;
}

.htp-host-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.host-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.host-info-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 228, 156, 0.1);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
}

.host-info-card:hover {
    border-color: rgba(255, 228, 156, 0.3);
}

.host-info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--subtext);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.host-info-value {
    font-family: monospace;
    font-size: 0.9rem;
    color: #f4ca64;
    word-break: break-all;
    line-height: 1.6;
}

.host-info-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(184, 138, 0, 0.08);
    border: 1px solid rgba(255, 228, 156, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--subtext);
    line-height: 1.6;
}

.host-info-note i {
    color: var(--primary);
    margin-right: 6px;
}

.htp-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg);
    background: linear-gradient(135deg, var(--primary), var(--gold-highlight));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.htp-copy-btn:hover {
    background: linear-gradient(135deg, var(--gold-highlight), var(--primary));
    box-shadow: 0 4px 15px rgba(184, 138, 0, 0.4);
    transform: translateY(-2px);
}

.htp-copy-btn.copied {
    background: linear-gradient(135deg, #3ba55c, #2d8048);
}

/* ========================================
   UPLOAD CUSTOM ITEM SECTION
======================================== */
.upload-section {
    position: relative;
    min-height: 60vh;
    padding: 80px 0;
    overflow: hidden;
    background: var(--bg);
}

.upload-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../assets/background/background8.png') center center / cover no-repeat;
    filter: brightness(0.4);
}

.upload-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(11, 11, 11, 0.95) 0%,
            rgba(11, 11, 11, 0.6) 15%,
            rgba(11, 11, 11, 0.6) 85%,
            rgba(11, 11, 11, 0.95) 100%);
}

.upload-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* ---- Header ---- */
.upload-header {
    margin-bottom: 50px;
}

.upload-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #f4ca64;
    background: radial-gradient(circle at 30% 30%, rgba(255, 232, 160, 0.2), rgba(33, 27, 19, 0.85));
    border: 2px solid rgba(255, 221, 132, 0.34);
    border-radius: 50%;
    text-shadow: 0 0 20px rgba(250, 189, 47, 0.6);
    box-shadow: 0 0 30px rgba(184, 138, 0, 0.2), inset 0 0 20px rgba(255, 221, 132, 0.1);
    animation: upload-glow 3s ease-in-out infinite;
}

@keyframes upload-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(184, 138, 0, 0.2), inset 0 0 20px rgba(255, 221, 132, 0.1); }
    50% { box-shadow: 0 0 50px rgba(184, 138, 0, 0.4), inset 0 0 30px rgba(255, 221, 132, 0.2); }
}

.upload-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.upload-subtitle {
    color: var(--subtext);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Coming Soon Content ---- */
.coming-soon-content {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 228, 156, 0.12);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 4rem;
    color: #f4ca64;
    margin-bottom: 30px;
    opacity: 0.7;
}

.coming-soon-text {
    color: var(--subtext);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.coming-soon-badge {
    display: inline-block;
    padding: 10px 25px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #f4ca64;
    background: rgba(184, 138, 0, 0.15);
    border: 2px solid rgba(255, 228, 156, 0.2);
    border-radius: 30px;
    letter-spacing: 1px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .htp-section { padding: 100px 0 60px; }
    .htp-title { font-size: 1.8rem; }
    .htp-app-detail { padding: 16px; }
    .htp-app-detail-header { gap: 10px; }
    .htp-app-actions { width: 100%; }
    .htp-platform-header { padding: 16px 20px; }
    .htp-platform-body { padding: 20px; }
    .htp-host-section { padding: 28px 20px; }
    .host-info-grid { grid-template-columns: 1fr; }
    .upload-section { padding: 60px 0; }
    .upload-container { padding: 0 16px; }
    .coming-soon-content { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .htp-title { font-size: 1.5rem; }
    .htp-icon-large { width: 60px; height: 60px; font-size: 1.6rem; }
}
