/* ===============================================
   TOLEDO INDOOR GARDEN - RUFIO ENHANCEMENTS
   Mega rating, video grid, pro chat widget
   =============================================== */

/* ===== VISUAL PRODUCT CAROUSEL ===== */
.hero-visual-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.hero-product-showcase {
    flex: 1;
    max-width: 600px;
}

.brand-logo-hero {
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 8px;
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.hero-product-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-product-desc {
    font-size: 20px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.feature-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-product-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease-out;
}

.hero-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

/* Carousel animations */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile responsive for visual carousel */
@media (max-width: 968px) {
    .hero-visual-content {
        flex-direction: column;
        text-align: center;
        padding: 60px 24px;
        gap: 40px;
    }
    
    .hero-product-showcase {
        max-width: 100%;
    }
    
    .hero-product-title {
        font-size: 36px;
    }
    
    .hero-product-desc {
        font-size: 18px;
    }
    
    .brand-logo-hero .logo-text {
        font-size: 48px !important;
    }
    
    .brand-logo-hero .logo-subtitle {
        font-size: 16px !important;
    }
    
    .hero-product-features {
        justify-content: center;
    }
    
    .hero-product-image {
        max-width: 100%;
    }
    
    .hero-product-image img {
        max-width: 350px !important;
    }
}

@media (max-width: 640px) {
    .hero-product-title {
        font-size: 28px;
    }
    
    .hero-product-desc {
        font-size: 16px;
    }
    
    .brand-logo-hero .logo-text {
        font-size: 36px !important;
    }
    
    .brand-logo-hero .logo-subtitle {
        font-size: 14px !important;
    }
    
    .hero-product-image img {
        max-width: 280px !important;
    }
}

/* ===== LOGO ENHANCEMENTS ===== */
.logo-img {
    height: auto !important;
    max-height: 100px;
}

@media (min-width: 769px) {
    .logo-img {
        max-height: 150px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        max-height: 70px;
    }
}

/* ===== MEGA RATING DISPLAY ===== */
.mega-rating {
    text-align: center;
    padding: 64px 32px;
    background: linear-gradient(135deg, #008b44, #006d35);
    border-radius: 24px;
    color: white;
    margin-bottom: 32px;
}

.mega-rating-score {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}

.mega-rating-stars {
    font-size: 48px;
    letter-spacing: 8px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.mega-rating-text {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mega-rating-subtext {
    font-size: 20px;
    opacity: 0.95;
    font-weight: 500;
}

@media (max-width: 768px) {
    .mega-rating-score {
        font-size: 80px;
    }
    
    .mega-rating-stars {
        font-size: 32px;
    }
    
    .mega-rating-text {
        font-size: 24px;
    }
    
    .mega-rating-subtext {
        font-size: 16px;
    }
}

/* ===== REVIEW TRUST BAR ===== */
.review-trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(71, 158, 82, 0.1), rgba(247, 201, 81, 0.1));
    border-radius: 16px;
    border: 2px solid #008b44;
}

.review-trust-item {
    text-align: center;
}

.review-trust-item strong {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #008b44;
    margin-bottom: 4px;
}

.review-trust-item span {
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .review-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px 16px;
    }
    
    .review-trust-item strong {
        font-size: 24px;
    }
}

/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.video-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #1a1a1a;
}

.video-thumbnail iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-content {
    padding: 24px;
}

.video-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.video-content .instructor {
    font-size: 14px;
    color: #008b44;
    font-weight: 600;
    margin-bottom: 12px;
}

.video-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 16px;
}

.video-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .video-thumbnail {
        height: 200px;
    }
}

/* ===== EDUCATION INTRO ===== */
.education-intro {
    background: linear-gradient(135deg, rgba(71, 158, 82, 0.1), rgba(247, 201, 81, 0.1));
    padding: 32px;
    border-radius: 16px;
    border: 2px solid #008b44;
}

/* ===== PROFESSIONAL CHAT WIDGET ===== */
/* ===== MASTER GROWER CHAT ===== */
.master-grower-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

.grower-chat-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #008b44, #006d35);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(71, 158, 82, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(71, 158, 82, 0.4); }
    50% { box-shadow: 0 8px 32px rgba(71, 158, 82, 0.6); }
}

.grower-chat-button:hover {
    background: linear-gradient(135deg, #006d35, #2d6635);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(71, 158, 82, 0.6);
    animation: none;
}

.grower-chat-button:active {
    transform: scale(0.95);
}

.chat-button-text {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.grower-chat-box {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 420px;
    max-width: calc(100vw - 48px);
    max-height: 650px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.grower-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #008b44, #006d35);
    color: white;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-info h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: white;
}

.status-badge {
    font-size: 12px;
    opacity: 0.95;
    font-weight: 600;
}

.chat-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.chat-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.quick-btn {
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.quick-btn:hover {
    background: #008b44;
    color: white;
    border-color: #008b44;
    transform: translateY(-2px);
}

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

.grower-chat-messages {
    flex: 1;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
}

.grower-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.grower-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.grower-chat-messages::-webkit-scrollbar-thumb {
    background: #008b44;
    border-radius: 4px;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: #008b44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message-bubble {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.user-message .message-bubble {
    background: #008b44;
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message .message-bubble {
    background: #f3f4f6;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

.bot-message .message-bubble strong {
    color: #008b44;
    font-weight: 700;
}

.bot-message .message-bubble a {
    color: #008b44;
    font-weight: 600;
    text-decoration: underline;
}

.bot-message .message-bubble a:hover {
    color: #006d35;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: white;
    border-top: 2px solid #e5e7eb;
}

.chat-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.chat-input:focus {
    outline: none;
    border-color: #008b44;
}

.chat-send {
    padding: 14px 20px;
    background: #008b44;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-send:hover {
    background: #006d35;
    transform: scale(1.05);
}

.chat-send:active {
    transform: scale(0.95);
}

.chat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 11px;
    color: #6b7280;
}

.hotline-badge {
    font-weight: 700;
    color: #008b44;
}

/* Mobile responsiveness for Master Grower chat */
@media (max-width: 768px) {
    .master-grower-chat {
        bottom: 16px;
        right: 16px;
    }
    
    .grower-chat-button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .chat-button-text {
        display: none;
    }
    
    .grower-chat-box {
        bottom: 70px;
        right: 0;
        width: calc(100vw - 32px);
        max-height: 85vh;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 12px;
    }
    
    .quick-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .grower-chat-messages {
        max-height: 50vh;
    }
    
    .message-bubble {
        max-width: 85%;
        font-size: 13px;
    }
}

/* ===== CALCULATOR GRID ENHANCEMENTS ===== */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.calculator-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.calculator-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #008b44;
}

.calculator-card p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-form input,
.calc-form select {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.calc-form input:focus,
.calc-form select:focus {
    outline: none;
    border-color: #008b44;
}

.calc-btn {
    padding: 14px;
    background: #008b44;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-btn:hover {
    background: #006d35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 158, 82, 0.3);
}

.calc-btn:active {
    transform: translateY(0);
}

.calc-result {
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #008b44;
    font-size: 15px;
    line-height: 1.7;
    min-height: 60px;
}

.calc-result:empty {
    display: none;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== TESTIMONIAL GRID ENHANCEMENTS ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.testimonial-card .stars {
    font-size: 24px;
    color: #F7C951;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-style: italic;
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #008b44, #006d35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.author strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
}

.author span {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===== FREE CLASSES CALLOUT ===== */
.free-classes-callout {
    margin-top: 64px;
    text-align: center;
    background: linear-gradient(135deg, #008b44, #006d35);
    padding: 48px 32px;
    border-radius: 24px;
    color: white;
    box-shadow: 0 12px 32px rgba(71, 158, 82, 0.3);
}

.free-classes-callout h3 {
    color: white;
    font-size: 36px;
    margin-bottom: 16px;
}

.free-classes-callout .large {
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto 24px;
}

@media (max-width: 768px) {
    .free-classes-callout {
        padding: 32px 24px;
    }
    
    .free-classes-callout h3 {
        font-size: 28px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
