/*
Theme Name: Ashoka Custom
Description: Custom WordPress theme for Ashoka App with product listing, notifications, training videos, and WhatsApp integration
Version: 1.0
Author: Ashoka Development Team
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Global Layout for Sticky Footer */
html, body {
    height: 100%;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.site-title:hover {
    color: #f0f0f0;
}

/* Navigation */
.main-navigation {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #ffd700;
}

/* Main Content */
.site-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
    justify-items: center;
}

/* Enhanced Product Card Design */
.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(102,126,234,0.10), 0 1.5px 6px rgba(118,75,162,0.08);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}
.product-card:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 8px 32px rgba(102,126,234,0.18), 0 3px 12px rgba(118,75,162,0.12);
    z-index: 2;
}
.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ffd700;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    letter-spacing: 0.5px;
}
.product-content {
    flex: 1 1 auto;
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222;
    line-height: 1.2;
}
.product-category {
    margin-bottom: 0.5rem;
}
.category-tag {
    background: #e6e6fa;
    color: #764ba2;
    font-size: 0.9rem;
    padding: 2px 10px;
    border-radius: 8px;
    font-weight: 500;
    margin-right: 6px;
}
.product-description {
    color: #555;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 48px;
}
.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}
.product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}
.product-actions .btn {
    flex: 1 1 auto;
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102,126,234,0.08);
}
.product-actions .btn-primary {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}
.product-actions .btn-success {
    background: #25d366;
    color: #fff;
    border: none;
}
.product-actions .btn-secondary {
    background: #f3f3f3;
    color: #764ba2;
    border: none;
}
.product-actions .btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 16px rgba(102,126,234,0.12);
}
/* Ensure action rows for products */
.actions-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.product-actions .btn {
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: 6px;
}
@media (max-width: 600px) {
    .product-card {
        min-height: 340px;
    }
    .product-image {
        height: 140px;
    }
    .product-content {
        padding: 1rem;
    }
}

/* Training Videos Section */
.videos-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
    justify-items: center;
}

.video-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.video-duration {
    color: #666;
    font-size: 0.9rem;
}

/* Notification System */
.notifications-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
}

.notification {
    background: white;
    border-left: 4px solid #667eea;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* WhatsApp Chat Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button {
    background: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* Footer */
.site-footer {
    background: #0f172a; /* slate-950 */
    color: #cbd5e1; /* slate-300 */
    padding: 2.2rem 0 1.2rem 0;
    margin-top: 3rem;
    border-top: 2px solid #1e293b; /* slate-800 */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.2rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}
.footer-brand h3 {
    color: #ffffff;
    margin-bottom: 0.4rem;
}
.footer-brand p {
    margin: 0.2rem 0 0.8rem 0;
    color: #94a3b8; /* slate-400 */
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-title {
    margin: 0 0 0.7rem 0;
    color: #ffffff;
    font-size: 1.05rem;
}

.footer-links a,
.footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1f2937; /* gray-800 */
    color: #e5e7eb; /* gray-200 */
    margin-right: 10px;
    line-height: 1;
}

.footer-social { margin-top: 0.4rem; display: flex; align-items: center; }

.footer-social a:hover {
    background: #334155; /* slate-700 */
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #1e293b;
    margin-top: 1.2rem;
    padding-top: 1rem;
    font-size: 0.95rem;
}

.footer-newsletter form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.7rem;
}
.footer-newsletter input[type="email"] {
    flex: 1 1 auto;
    background: #0b1220;
    border: 1px solid #1e293b;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
}
.footer-newsletter button {
    background: #7c3aed;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
}
.footer-newsletter button:hover {
    background: #6d28d9;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.2s ease, box-shadow 0.25s ease;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.45);
}
.back-to-top i { font-size: 1.15rem; }

@media (max-width: 600px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .notifications-panel {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Access Control Messages */
.access-denied {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 1rem 0;
}

.access-granted {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    margin: 1rem 0;
}

/* Single Product Page Styles */
.single-product-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.single-product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(102,126,234,0.10), 0 1.5px 6px rgba(118,75,162,0.08);
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}
.single-product-gallery {
    flex: 1 1 350px;
    min-width: 320px;
    max-width: 420px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.single-product-image {
    width: 100%;
    max-width: 400px;
    height: 340px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(102,126,234,0.08);
    background: #f3f3f3;
}
.single-product-gallery .product-badge {
    top: 18px;
    left: 18px;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 14px;
}
.single-product-details {
    flex: 2 1 400px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.single-product-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #222;
    line-height: 1.1;
}
.single-product-description {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.related-products-section {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.related-products-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #764ba2;
}
@media (max-width: 900px) {
    .single-product-container {
        flex-direction: column;
        padding: 1.5rem 0.5rem;
    }
    .single-product-gallery, .single-product-details {
        min-width: 0;
        max-width: 100%;
    }
    .single-product-image {
        height: 220px;
    }
}

/* Products Hero Banner */
.products-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    margin: 2rem auto;
    box-shadow: 0 4px 24px rgba(102,126,234,0.15);
    max-width: 1200px;
    width: 100%;
}
.products-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.products-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .products-hero {
        padding: 2rem 1rem;
    }
    .products-hero h1 {
        font-size: 2rem;
    }
    .products-hero p {
        font-size: 1rem;
    }
} 