/* Ring Size Finder Specific Styles */
.card-calibration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.calibration-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.size-btn {
    width: 50px;
    height: 50px;
    border: 3px solid #0066cc;
    background: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn:hover {
    background: #0066cc;
    color: white;
    transform: scale(1.1);
}

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

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 8px;
    padding: 20px;
}

.credit-card {
    width: 85.6mm;
    height: 53.98mm;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-family: 'Courier New', monospace;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.credit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-number {
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 10px;
}

.card-holder {
    font-size: 10px;
    text-transform: uppercase;
}

.card-expiry {
    font-size: 10px;
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.card-logo {
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
}

.card-dimensions {
    text-align: center;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.ring-sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

.ring-size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ring-size-item:hover {
    transform: scale(1.05);
}

.ring-circle {
    border: 3px solid #0066cc;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-circle:hover {
    background: rgba(0, 102, 204, 0.1);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

.ring-circle.selected {
    background: rgba(0, 102, 204, 0.2);
    border-color: #004d99;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.5);
}

.ring-size-label {
    margin-top: 8px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.ring-size-details {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.selected-size-result {
    background: white;
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.size-conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.size-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e1e5e9;
}

.size-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    color: #856404;
    text-align: center;
}

@media (max-width: 768px) {
    .calibration-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .ring-sizes-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 15px;
    }
}