/*
 * Responsive Pages Styles
 * Estilos responsivos específicos para las páginas del tema CEI Gemology
 */

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .page-header h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .intro-content,
    .featured-content {
        gap: 5rem;
    }
    
    .mvv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .leadership-grid,
    .team-grid,
    .faculty-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .intro-content,
    .featured-content {
        gap: 3rem;
    }
    
    .mvv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .leadership-grid,
    .team-grid,
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.8rem;
    }
    
    .intro-content,
    .featured-content,
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .articles-container,
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mvv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leadership-grid,
    .team-grid,
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input {
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .search-button {
        border-radius: 10px;
    }
    
    .result-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .result-image {
        width: 100%;
        height: 200px;
    }
    
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 200px;
    }
}

/* Mobile Large (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .page-header {
        padding: 5rem 0 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .intro-content,
    .featured-content,
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .articles-container,
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mvv-grid {
        grid-template-columns: 1fr;
    }
    
    .leadership-grid,
    .team-grid,
    .faculty-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-icon {
        margin: 0 auto 1rem;
    }
    
    .search-form-container,
    .newsletter-form {
        padding: 2rem 1.5rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .no-results-actions {
        flex-direction: column;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .intro-content,
    .featured-content,
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .articles-container,
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mvv-grid {
        grid-template-columns: 1fr;
    }
    
    .leadership-grid,
    .team-grid,
    .faculty-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-item,
    .mvv-card,
    .leader-card,
    .team-member,
    .faculty-member {
        padding: 1.5rem;
    }
    
    .search-form-container,
    .newsletter-form {
        padding: 1.5rem 1rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .suggestion-tags {
        justify-content: center;
    }
    
    .suggestion-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .result-item {
        padding: 1.5rem;
    }
    
    .article-card {
        padding: 1rem;
    }
    
    .article-image {
        height: 150px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .no-results-actions {
        flex-direction: column;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pages-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }
}

/* ===== SPECIFIC MOBILE IMPROVEMENTS ===== */

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .nav-container {
        padding: 0.5rem 0;
    }
    
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .nav-logo img {
        max-height: 40px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Mobile Forms */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-input-group input {
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .newsletter-input-group button {
        border-radius: 10px;
    }
}

/* Mobile Cards and Grids */
@media (max-width: 768px) {
    .service-card,
    .course-card,
    .testimonial-card,
    .product-card,
    .category-card {
        margin: 0 5px;
    }
    
    .achievement-card {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .achievement-card h3 {
        font-size: 1.1rem;
    }
    
    .achievement-card p {
        font-size: 0.9rem;
    }
}

/* Mobile Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Mobile Spacing */
@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .intro-highlights {
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 1rem;
    }
    
    .mvv-card {
        padding: 2rem 1.5rem;
    }
    
    .leader-card,
    .team-member,
    .faculty-member {
        margin-bottom: 2rem;
    }
    
    .member-info,
    .leader-info,
    .faculty-info {
        padding: 1.5rem;
    }
}

/* Mobile Images */
@media (max-width: 768px) {
    .intro-image img,
    .featured-image img,
    .gallery-item img {
        height: 250px;
    }
    
    .member-image,
    .leader-image,
    .faculty-image {
        height: 200px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .result-image {
        height: 150px;
    }
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .widget {
        padding: 1.5rem;
    }
    
    .popular-post {
        flex-direction: column;
        text-align: center;
    }
    
    .popular-image {
        width: 100%;
        height: 100px;
        margin-bottom: 1rem;
    }
}

/* Mobile Notifications */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* Mobile Search */
@media (max-width: 768px) {
    .search-content {
        padding: 0 1rem;
    }
    
    .search-form-container h2 {
        font-size: 1.5rem;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .result-item {
        padding: 1.5rem;
    }
    
    .result-title a {
        font-size: 1.1rem;
    }
}

/* Mobile Products */
@media (max-width: 768px) {
    .product-categories-detail .category-section {
        margin-bottom: 3rem;
    }
    
    .category-products {
        grid-template-columns: 1fr;
    }
    
    .product-item {
        flex-direction: column;
        text-align: center;
    }
    
    .product-item .product-image {
        width: 100%;
        height: 150px;
        margin-bottom: 1rem;
    }
}

/* Mobile Newsletter */
@media (max-width: 768px) {
    .newsletter-content {
        text-align: center;
    }
    
    .newsletter-text h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-text p {
        font-size: 1rem;
    }
}

/* Mobile CTA Sections */
@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .search-section,
    .newsletter-section,
    .btn,
    .hamburger,
    .nav-menu {
        display: none !important;
    }
    
    .page-header {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0 !important;
        margin-top: 0 !important;
    }
    
    .page-header h1 {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .page-header p {
        color: #000 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
    }
    
    .card,
    .service-card,
    .course-card,
    .testimonial-card,
    .product-card,
    .category-card {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus styles */
.btn:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #cfaa61;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
    }
    
    .btn-secondary {
        background: #000;
        color: #fff;
        border-color: #000;
    }
    
    .btn-outline {
        background: #fff;
        color: #000;
        border-color: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #333;
        color: #fff;
    }
    
    .tooltip {
        background: #555;
        color: #fff;
    }
}

