/* Ruby Farming Guide Specific Styles */

        /* Hero Card Styles for Ruby Farming - HOCHKANT wie characterlist, 25% kleiner */
        .hero-card {
            position: relative;
            display: inline-block;
            width: 105px;
            height: 150px;
            margin: 0 6px 6px 0;
            transition: all 0.3s ease;
            border-radius: 9px;
            overflow: hidden;
        }

        /* Rarity-spezifische Gradient Backgrounds für 7kRebirth genau wie in characterlist */
        .hero-card.rarity-l-plus-plus {
            background: linear-gradient(135deg, #FF4500, #FF6347); /* Dunkel Orange Gradient für L++ */
        }

        .hero-card.rarity-s-plus {
            background: linear-gradient(135deg, #FFA500, #FF8C00); /* Hell Orange Gradient für S+ */
        }

        .hero-card.rarity-l {
            background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold Gradient für L */
        }

        .hero-card img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            border-radius: 6px;
            z-index: 1;
            transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
        
            backface-visibility: hidden;
            perspective: 1000px;
            will-change: transform;
        }

        .hero-card img:hover {
            transform: scale(1.08);
            filter: contrast(1.1);
          
        }

        /* Hero Name Overlay wie in characterlist, 25% kleiner */
        .hero-name-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
            color: white;
            padding: 9px 3px 6px;
            text-align: center;
            font-weight: bold;
            font-size: 0.825rem;
            z-index: 25;
            transition: opacity 0.3s ease;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
            -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.6);
        }

        /* Hintergrund-Verzierungen für spezifische Raritäten basierend auf JSON */
        .hero-card.rarity-l-plus-plus::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 55px;
            height: 55px;
            background-image: url('https://ik.imagekit.io/frnrxcqkq/7krebirth/LPlusPlusBorder.png');
            background-size: contain;
            background-repeat: no-repeat;
            z-index: 30;
        }

        .hero-card.rarity-s-plus::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 55px;
            height: 55px;
            background-image: url('https://ik.imagekit.io/frnrxcqkq/7krebirth/LPlusBorder.png');
            background-size: contain;
            background-repeat: no-repeat;
            z-index: 30;
        }

        /* L Charaktere bekommen keine Border-Verzierung */

        /* Hero Type Icon oben links, 25% kleiner */
        .hero-type-icon {
            position: absolute;
            top: 0px;
            left: 0px;
            width: 18px;
            height: 18px;
            z-index: 24;
            border-radius: 4px 0px 4px 0px;
            padding: 2px;
        }

        .hero-type-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }


        .ruby-icon {
            width: 24px;
            height: 24px;
            object-fit: contain;
            border-radius: 4px;
            vertical-align: middle;
            margin-right: 5px;
        }

        .tier-section {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 15px;
            margin: 15px 0;
        }

        .tier-title {
            color: #ffd93d;
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .hero-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        /* Responsive Tables for Mobile */
        @media (max-width: 768px) {
            /* Make tables scrollable horizontally */
            .guide-section table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
            }

            .guide-section table th,
            .guide-section table td {
                padding: 8px 6px !important;
                font-size: 0.85rem !important;
            }

            /* Make hero cards slightly bigger on mobile for better visibility */
            .hero-card {
                width: 90px;
                height: 130px;
            }

            .hero-name-overlay {
                font-size: 0.75rem;
                padding: 6px 2px 4px;
            }

            /* Adjust inline images for mobile */
            .guide-section img[style*="width: 500px"] {
                width: 100% !important;
                max-width: 350px !important;
                height: auto !important;
            }

            .guide-section img[style*="width: 323px"] {
                max-width: 100% !important;
            }

            /* Better spacing for tier sections */
            .tier-section {
                padding: 12px;
                margin: 12px 0;
            }

            .tier-title {
                font-size: 1rem;
            }

            .hero-grid {
                gap: 6px;
                justify-content: center;
            }
        }

        /* Extra small mobile devices */
        @media (max-width: 480px) {
            .hero-card {
                width: 75px;
                height: 110px;
            }

            .hero-name-overlay {
                font-size: 0.7rem;
                padding: 5px 2px 3px;
            }

            /* Make tables more compact */
            .guide-section table th,
            .guide-section table td {
                padding: 6px 4px !important;
                font-size: 0.75rem !important;
            }

            /* Inline icons smaller on very small screens */
            .guide-section img[style*="vertical-align: middle"] {
                width: 18px !important;
                height: 18px !important;
            }
        }


