/**
 * Horny Of Cards - Frontend Styles
 */

/* ============================================
   VARIABLES
   ============================================ */

:root {
    --hoc-gold: #FFD700;
    --hoc-red: #DC143C;
    --hoc-dark: #0a0a0a;
    --hoc-darker: #000000;
    --hoc-light: #ffffff;
    --hoc-gray: #1a1a1a;
    --hoc-purple: #9370DB;
    --hoc-blue: #4169E1;
    --hoc-green: #228B22;
    --hoc-pink: #FF69B4;
    --hoc-orange: #FFA500;
}

/* ============================================
   GAME CONTAINER
   ============================================ */

.hoc-game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--hoc-light);
}

/* ============================================
   STATS BAR
   ============================================ */

.hoc-stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 25px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 30px;
    margin-bottom: 40px;
}

.hoc-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
}

.hoc-stat-icon {
    font-size: 22px;
}

.hoc-stat-value {
    color: var(--hoc-gold);
}

/* ============================================
   SECTIONS
   ============================================ */

.hoc-section {
    margin-bottom: 60px;
    text-align: center;
}

.hoc-section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--hoc-gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* ============================================
   CARDS
   ============================================ */

.hoc-cards-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
    perspective: 1200px;
    flex-wrap: wrap;
}

.hoc-card-slot {
    width: 200px;
    height: 300px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hoc-card-slot:hover {
    transform: translateY(-8px);
}

.hoc-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hoc-card-slot.flipped .hoc-card-inner {
    transform: rotateY(180deg);
}

.hoc-card-front,
.hoc-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.hoc-card-front {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 3px solid var(--hoc-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hoc-card-back {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 3px solid var(--hoc-gold);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hoc-card-back-img {
    width: 70%;
    height: auto;
}

.hoc-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.hoc-card-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--hoc-gold);
    margin-bottom: 5px;
}

.hoc-card-rarity-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
}

.hoc-card-level-display {
    font-size: 14px;
    color: var(--hoc-light);
    margin-top: 5px;
}

/* ============================================
   BUTTONS
   ============================================ */

.hoc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hoc-btn-flip {
    background: linear-gradient(135deg, var(--hoc-gold), var(--hoc-orange));
    color: var(--hoc-darker);
}

.hoc-btn-flip:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.hoc-btn-collect {
    background: linear-gradient(135deg, var(--hoc-red), #8B0000);
    color: var(--hoc-light);
}

.hoc-btn-collect:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.5);
}

.hoc-btn-primary {
    background: linear-gradient(135deg, var(--hoc-gold), var(--hoc-orange));
    color: var(--hoc-darker);
}

.hoc-btn-secondary {
    background: transparent;
    border: 2px solid var(--hoc-gold);
    color: var(--hoc-gold);
}

.hoc-btn-level-up {
    background: linear-gradient(135deg, var(--hoc-green), #006400);
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 6px;
    width: 100%;
    margin-top: 10px;
}

.hoc-btn-level-up:hover {
    transform: scale(1.02);
}

.hoc-btn:disabled,
.hoc-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.hoc-btn-icon {
    font-size: 20px;
}

/* ============================================
   COOLDOWN
   ============================================ */

.hoc-cooldown {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: var(--hoc-gold);
    padding: 15px 30px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
}

.hoc-cooldown-icon {
    font-size: 28px;
}

/* ============================================
   PACKS
   ============================================ */

.hoc-packs-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hoc-pack-wrapper {
    text-align: center;
}

.hoc-pack,
.hoc-chest {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hoc-pack:hover,
.hoc-chest:hover {
    transform: translateY(-10px);
}

.hoc-pack-img {
    width: 250px;
    height: 357px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--hoc-gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.hoc-chest-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--hoc-gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.hoc-pack-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--hoc-gold), var(--hoc-orange));
    color: var(--hoc-darker);
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hoc-pack:hover .hoc-pack-label {
    opacity: 1;
}

.hoc-chest-keys {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--hoc-darker);
    border: 2px solid var(--hoc-gold);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 18px;
}

.hoc-key-count {
    font-weight: bold;
    color: var(--hoc-gold);
}

.hoc-pack-info {
    margin-top: 15px;
    font-size: 14px;
    color: var(--hoc-light);
    opacity: 0.7;
}

/* Packs Page */
.hoc-packs-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--hoc-light);
}

.hoc-page-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--hoc-gold);
    text-transform: uppercase;
    letter-spacing: 8px;
    text-align: center;
    margin-bottom: 50px;
}

.hoc-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hoc-pack-card {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 2px solid var(--hoc-gold);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.hoc-pack-card:hover {
    transform: translateY(-5px);
}

.hoc-pack-image-container {
    position: relative;
    margin-bottom: 20px;
}

.hoc-pack-image {
    width: 200px;
    height: 286px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--hoc-gold);
}

.hoc-chest-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--hoc-gold);
}

.hoc-pack-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--hoc-gold);
    color: var(--hoc-darker);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.hoc-badge-premium {
    background: var(--hoc-purple);
    color: white;
}

.hoc-pack-details h3 {
    font-size: 22px;
    color: var(--hoc-gold);
    margin-bottom: 10px;
}

.hoc-pack-details p {
    font-size: 14px;
    color: var(--hoc-light);
    opacity: 0.7;
    margin-bottom: 8px;
}

.hoc-status-available {
    color: var(--hoc-green);
}

.hoc-status-cooldown {
    color: var(--hoc-orange);
}

.hoc-btn-open-pack,
.hoc-btn-open-chest {
    background: linear-gradient(135deg, var(--hoc-gold), var(--hoc-orange));
    color: var(--hoc-darker);
    padding: 12px 30px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hoc-btn-open-pack:hover:not(:disabled),
.hoc-btn-open-chest:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hoc-btn-open-pack:disabled,
.hoc-btn-open-chest:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   SEASON
   ============================================ */

.hoc-season-info {
    text-align: center;
}

.hoc-season-name {
    font-size: 32px;
    color: var(--hoc-gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.hoc-countdown {
    margin-top: 20px;
}

.hoc-countdown-number {
    font-size: 80px;
    font-weight: 900;
    color: var(--hoc-red);
    text-shadow: 0 0 40px rgba(220, 20, 60, 0.8);
    line-height: 1;
}

.hoc-countdown-label {
    font-size: 18px;
    color: var(--hoc-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
}

/* ============================================
   COLLECTION
   ============================================ */

.hoc-collection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--hoc-light);
}

.hoc-collection-header {
    text-align: center;
    margin-bottom: 30px;
}

.hoc-collection-header h2 {
    font-size: 36px;
    color: var(--hoc-gold);
    text-transform: uppercase;
    letter-spacing: 5px;
}

.hoc-collection-count {
    font-size: 18px;
    color: var(--hoc-light);
    opacity: 0.7;
}

.hoc-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.hoc-filter-select {
    background: var(--hoc-gray);
    color: var(--hoc-light);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.hoc-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.hoc-collection-card {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.hoc-collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hoc-card-image-wrapper {
    position: relative;
    border: 2px solid;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.hoc-card-rarity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.hoc-card-info {
    padding: 5px 0;
}

.hoc-card-level {
    font-size: 14px;
    color: var(--hoc-light);
    opacity: 0.7;
}

.hoc-card-copies {
    font-size: 13px;
    color: var(--hoc-gold);
    margin-top: 3px;
}

.hoc-empty-collection {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    opacity: 0.6;
}

/* ============================================
   LOGIN PROMPT
   ============================================ */

.hoc-login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px;
}

.hoc-login-box {
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 2px solid var(--hoc-gold);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
}

.hoc-login-box h2 {
    font-size: 36px;
    color: var(--hoc-gold);
    margin-bottom: 15px;
}

.hoc-login-box p {
    font-size: 16px;
    color: var(--hoc-light);
    opacity: 0.7;
    margin-bottom: 30px;
}

.hoc-login-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */

.hoc-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    z-index: 10000;
    animation: hocSlideIn 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    max-width: 350px;
}

.hoc-notification-success {
    background: linear-gradient(135deg, #228B22, #006400);
    border: 1px solid #32CD32;
    color: white;
}

.hoc-notification-error {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    border: 1px solid #FF6B6B;
    color: white;
}

.hoc-notification-info {
    background: linear-gradient(135deg, #4169E1, #00008B);
    border: 1px solid #6495ED;
    color: white;
}

@keyframes hocSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   LOADING
   ============================================ */

.hoc-loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid var(--hoc-gold);
    border-radius: 50%;
    animation: hocSpin 1s linear infinite;
}

@keyframes hocSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hoc-stats-bar {
        gap: 15px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .hoc-cards-container {
        gap: 15px;
    }
    
    .hoc-card-slot {
        width: 160px;
        height: 240px;
    }
    
    .hoc-section-title {
        font-size: 28px;
    }
    
    .hoc-packs-container {
        gap: 30px;
    }
    
    .hoc-pack-img {
        width: 200px;
        height: 286px;
    }
    
    .hoc-countdown-number {
        font-size: 60px;
    }
    
    .hoc-collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hoc-stats-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .hoc-card-slot {
        width: 140px;
        height: 210px;
    }
    
    .hoc-section-title {
        font-size: 24px;
    }
    
    .hoc-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .hoc-pack-img {
        width: 180px;
        height: 257px;
    }
    
    .hoc-countdown-number {
        font-size: 48px;
    }
    
    .hoc-collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}