/* Marble Product Size Guide Styles */

/* Container */
.marble-size-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.marble-size-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.marble-size-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="ruler" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="2" fill="%23ffffff" opacity="0.1"/><rect width="2" height="20" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23ruler)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-icon i {
    font-size: 32px;
    color: #667eea;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.8));
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Content */
.size-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Section Styling */
.size-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    border: 1px solid #e3f2fd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.size-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a237e;
}

.section-header p {
    font-size: 1.1rem;
    color: #5c6bc0;
    margin: 0;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 100%);
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon i {
    font-size: 24px;
    color: white;
}

.category-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a237e;
}

.category-card p {
    color: #5c6bc0;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.size-range {
    background: #f3f8ff;
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.range-label {
    font-weight: 600;
    color: #1a237e;
    font-size: 0.9rem;
}

.range-value {
    color: #5c6bc0;
    font-weight: 500;
    margin-left: 8px;
}

/* Size Charts */
.size-chart {
    margin-bottom: 40px;
}

.size-chart:last-child {
    margin-bottom: 0;
}

.size-chart h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a237e;
    display: flex;
    align-items: center;
    gap: 12px;
}

.size-chart h3 i {
    color: #667eea;
    font-size: 1.3rem;
}

.chart-table {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.chart-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.chart-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e3f2fd;
    font-size: 0.95rem;
}

.chart-table tr:hover {
    background: #f3f8ff;
}

.size-label {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Placement Guide */
.placement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.placement-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e3f2fd;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.placement-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.room-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.room-icon i {
    font-size: 20px;
    color: white;
}

.placement-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a237e;
}

.placement-recommendations {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.recommendation strong {
    color: #1a237e;
    display: block;
    margin-bottom: 5px;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tip-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e3f2fd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.tip-card:hover .tip-icon {
    transform: scale(1.1) rotate(5deg);
}

.tip-icon i {
    font-size: 24px;
    color: white;
}

.tip-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a237e;
}

.tip-card p {
    color: #5c6bc0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Comparison Tool */
.comparison-tool {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e3f2fd;
    border-radius: 12px;
    padding: 30px;
}

.size-selector {
    margin-bottom: 30px;
    text-align: center;
}

.size-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a237e;
}

.size-selector select {
    padding: 12px 20px;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #1a237e;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.size-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.size-visualization {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.size-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.size-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid transparent;
}

.size-item:hover,
.size-item.active {
    border-color: #667eea;
    background: #f3f8ff;
    transform: translateY(-3px);
}

.size-shape {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: 8px;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
    position: relative;
}

.size-item.active .size-shape {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scale(1.1);
}

.size-name {
    font-weight: 600;
    color: #1a237e;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-details {
    background: white;
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #1a237e;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #5c6bc0;
    font-size: 1.1rem;
}

/* Contact Section */
.size-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 50px 40px;
    border-radius: 12px;
    margin-top: 50px;
}

.contact-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-btn.primary {
    background: white;
    color: #1a237e;
}

.contact-btn.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-btn.secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.contact-btn.secondary:hover {
    background: white;
    color: #1a237e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .marble-size-container {
        padding: 0 15px;
    }
    
    .marble-size-hero {
        padding: 40px 20px;
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .size-section {
        padding: 25px 20px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .category-grid,
    .placement-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .size-display {
        gap: 20px;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .size-section {
        padding: 20px 15px;
    }
    
    .category-card,
    .placement-card,
    .tip-card {
        padding: 20px;
    }
    
    .chart-table {
        font-size: 0.85rem;
    }
    
    .chart-table th,
    .chart-table td {
        padding: 10px 8px;
    }
}

/* Print Styles */
@media print {
    .marble-size-hero {
        background: none;
        color: #000;
    }
    
    .size-section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .contact-actions {
        display: none;
    }
}

/* Accessibility */
.size-section:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.category-card:focus,
.tip-card:focus,
.placement-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.contact-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.size-section {
    animation: fadeInUp 0.6s ease-out;
}

.size-section:nth-child(2) { animation-delay: 0.1s; }
.size-section:nth-child(3) { animation-delay: 0.2s; }
.size-section:nth-child(4) { animation-delay: 0.3s; }
.size-section:nth-child(5) { animation-delay: 0.4s; }
.size-section:nth-child(6) { animation-delay: 0.5s; }