/* Ring Size Pop-up Styles */
.ring-size-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ring-size-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.ring-size-popup-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    max-width: 1050px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: ringSizePopupSlideIn 0.3s ease-out;
    /* Lepší integrace se scrollbarem */
    padding-right: 0;
}

/* Custom scrollbar pro pop-up - respektuje hranice pop-upu */
.ring-size-popup-content::-webkit-scrollbar {
    width: 6px;
}

.ring-size-popup-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 0;
    margin: 8px 0;
}

.ring-size-popup-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    border: none;
    margin: 2px;
}

.ring-size-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

@keyframes ringSizePopupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ring-size-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ring-size-popup-close:hover {
    font-size: 28px;
    color: #000;
}

.ring-size-popup-body {
    padding: 30px;
    overflow-y: visible;
    max-height: none;
}

.ring-size-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
    text-align: center;
}

.ring-size-popup-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0 auto 30px auto;
    text-align: center;
    line-height: 1.5;
    max-width: 600px;
}

.ring-size-popup-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.ring-size-popup-image {
    text-align: center;
}

.ring-size-popup-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.ring-size-popup-image img:hover {
    transform: scale(1.02);
}

.ring-size-popup-image-caption {
    font-size: 14px;
    color: #4a5568;
    margin: 10px 0 0 0;
    font-weight: 500;
}

.ring-size-popup-table-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 20px 0;
    text-align: center;
}

.ring-size-popup-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 600px;
    overflow-y: visible;
}

.ring-size-popup-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 400px;
}

.ring-size-popup-table thead {
    background: linear-gradient(135deg, #f5e7de 0%, #d4c4b0 100%);
    color: #333;
}

.ring-size-popup-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ring-size-popup-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #4a5568;
}

.ring-size-popup-table tbody tr:nth-child(even) {
    background-color: #faf8f6;
}

.ring-size-popup-table tbody tr:hover {
    background-color: #f7f3f0;
    transition: background-color 0.2s ease;
}

/* Tablet Responsive Styles */
@media (max-width: 992px) {
    .ring-size-popup-content {
        max-width: 85vw;
        max-height: 80vh;
        margin: 30px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
    }
    
    .ring-size-popup-overlay {
        background-color: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2.5px);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .ring-size-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    
    .ring-size-popup-content {
        max-width: 90vw;
        max-height: 85vh;
        margin: 20px;
        border: 2px solid #e2e8f0;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .ring-size-popup-overlay {
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
    }
    
    .ring-size-popup-body {
        padding: 20px;
        max-height: none;
        overflow: visible;
    }
    
    .ring-size-popup-title {
        font-size: 24px;
    }
    
    .ring-size-popup-subtitle {
        font-size: 14px;
        max-width: 100%;
    }
    
    .ring-size-popup-images {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .ring-size-popup-image img {
        height: 120px;
    }
    
    .ring-size-popup-table-title {
        font-size: 20px;
    }
    
    .ring-size-popup-table th,
    .ring-size-popup-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .ring-size-popup-table {
        min-width: 350px;
    }
    
    .ring-size-popup-table-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .ring-size-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    
    .ring-size-popup-content {
        max-width: 95vw;
        max-height: 90vh;
        border-radius: 8px;
        margin: 10px;
        border: 2px solid #e2e8f0;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .ring-size-popup-overlay {
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
    }
    
    .ring-size-popup-body {
        padding: 15px;
        max-height: none;
        overflow: visible;
    }
    
    .ring-size-popup-title {
        font-size: 22px;
    }
    
    .ring-size-popup-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
    }
    
    .ring-size-popup-table th,
    .ring-size-popup-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .ring-size-popup-table {
        min-width: 300px;
    }
}

/* Ring Size Pop-up Trigger Button */
.ring-size-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding-left: 5%;
}

.ring-size-trigger:hover {
    color: #2d3748;
}

.ring-size-trigger-icon {
    width: 16px;
    height: 16px;
    background-color: #68d391;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}


/* Ring Size Article Styles - Separátní styly pro článek */
/* Všechny selektory začínají #ring-size-guide-article aby se nepletly s pop-upem */

#ring-size-guide-article {
    max-width: 1050px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Skrytí technických dat */
#ring-size-guide-article .hidden-popup-data,
#ring-size-guide-article .hidden-data {
    display: none !important;
}

/* Úvodní texty */
#ring-size-guide-article #popup-texts {
    margin-bottom: 40px;
}

#ring-size-guide-article #popup-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
    text-align: center;
}

#ring-size-guide-article #popup-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
    max-width: 700px;
}

/* Sekcia s obrázky */
#ring-size-guide-article #popup-images {
    margin-bottom: 50px;
}

#ring-size-guide-article #popup-images h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 25px 0;
    text-align: center;
}

/* Grid obrázků */
#ring-size-guide-article .images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

#ring-size-guide-article .guide-image {
    text-align: center;
}

#ring-size-guide-article .guide-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ring-size-guide-article .guide-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#ring-size-guide-article .guide-image p {
    font-size: 14px;
    color: #4a5568;
    margin: 12px 0 0 0;
    font-weight: 600;
}

/* Tabulka velikostí */
#ring-size-guide-article #ring-size-table {
    margin-top: 50px;
}

#ring-size-guide-article #ring-size-table h2 {
    font-size: 26px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 25px 0;
    text-align: center;
}

#ring-size-guide-article #size-data {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#ring-size-guide-article #size-data thead {
    background: linear-gradient(135deg, #f5e7de 0%, #d4c4b0 100%);
}

#ring-size-guide-article #size-data th {
    padding: 16px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

#ring-size-guide-article #size-data td {
    padding: 14px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #4a5568;
}

#ring-size-guide-article #size-data tbody tr:nth-child(even) {
    background-color: #faf8f6;
}

#ring-size-guide-article #size-data tbody tr:hover {
    background-color: #f7f3f0;
    transition: background-color 0.2s ease;
}

#ring-size-guide-article #size-data tbody tr:last-child td {
    border-bottom: none;
}

/* Tablet Responsive Styles */
@media (max-width: 992px) {
    #ring-size-guide-article {
        padding: 30px 20px;
    }
    
    #ring-size-guide-article #popup-title {
        font-size: 28px;
    }
    
    #ring-size-guide-article .images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    #ring-size-guide-article .guide-image img {
        height: 180px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    #ring-size-guide-article {
        padding: 25px 15px;
    }
    
    #ring-size-guide-article #popup-title {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    #ring-size-guide-article #popup-subtitle {
        font-size: 15px;
        max-width: 100%;
    }
    
    #ring-size-guide-article #popup-images h2,
    #ring-size-guide-article #ring-size-table h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    #ring-size-guide-article .images-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #ring-size-guide-article .guide-image img {
        height: 220px;
    }
    
    #ring-size-guide-article #size-data {
        font-size: 13px;
    }
    
    #ring-size-guide-article #size-data th,
    #ring-size-guide-article #size-data td {
        padding: 12px 10px;
        font-size: 13px;
    }
}

/* Small Mobile Responsive Styles */
@media (max-width: 480px) {
    #ring-size-guide-article {
        padding: 20px 10px;
    }
    
    #ring-size-guide-article #popup-title {
        font-size: 24px;
    }
    
    #ring-size-guide-article #popup-subtitle {
        font-size: 14px;
    }
    
    #ring-size-guide-article #popup-images h2,
    #ring-size-guide-article #ring-size-table h2 {
        font-size: 20px;
    }
    
    #ring-size-guide-article .guide-image img {
        height: 200px;
    }
    
    #ring-size-guide-article #size-data th,
    #ring-size-guide-article #size-data td {
        padding: 10px 8px;
        font-size: 12px;
    }
}


