/* Responsive Design for EntumentTV Pro Theme */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .hero-slider {
    height: 400px;
  }

  .hero-content {
    width: 80%;
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .main-layout {
    gap: 1.5rem;
  }

  .sidebar {
    width: 280px;
  }

  .search-form {
    width: 250px;
  }

  nav.main-navigation ul {
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets Portrait (768px) */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding: 0 15px;
  }

  .header-top {
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .nav-wrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  nav.main-navigation ul {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background-color: var(--color-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  nav.main-navigation ul.active {
    display: flex;
  }

  nav.main-navigation li {
    width: 100%;
  }

  nav.main-navigation a {
    display: block;
    padding: 1rem;
    border-radius: 0;
    width: 100%;
    text-align: left;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .search-form {
    width: 100%;
  }

  .social-links {
    justify-content: flex-start;
  }

  .hero-slider {
    height: 350px;
    margin-bottom: 2rem;
  }

  .hero-content {
    width: 100%;
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-meta {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .main-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .sidebar {
    width: 100%;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .post-featured-image {
    height: 250px;
  }

  .post-meta {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .social-share {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-title {
    margin-right: 0;
  }

  .card-list {
    flex-direction: column;
  }

  .card-list-image {
    width: 100%;
    height: 200px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 1rem;
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Landscape (480px - 767px) */
@media (max-width: 767px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }

  .container {
    padding: 0 12px;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .hero-slider {
    height: 300px;
    margin-bottom: 1.5rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .hero-category {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .card-excerpt {
    font-size: 0.85rem;
  }

  .card-footer {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .sidebar-widget {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .newsletter-form {
    gap: 0.75rem;
  }

  .comment-form {
    padding: 1rem;
  }

  .search-form {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .pagination {
    gap: 0.3rem;
  }

  .pagination a,
  .pagination span {
    width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }

  .share-button {
    width: 40px;
    height: 40px;
  }

  .trending-image {
    width: 50px;
    height: 50px;
  }

  .trending-number {
    font-size: 1.25rem;
  }

  .card-list-body {
    padding: 0.75rem;
  }

  .card-list-title {
    font-size: 0.9rem;
  }

  .card-list-meta {
    gap: 0.75rem;
    font-size: 0.75rem;
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
  }

  .post-content {
    font-size: 1rem;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-newsletter-form input {
    min-width: 100%;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Small (< 480px) */
@media (max-width: 479px) {
  html {
    font-size: 14px;
  }

  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
  h4 { font-size: 0.95rem; }

  .container {
    padding: 0 10px;
  }

  .site-branding {
    gap: 0.5rem;
  }

  .site-logo {
    width: 40px;
    height: 40px;
  }

  .site-title {
    font-size: 1.05rem;
  }

  .header-actions {
    width: 100%;
    gap: 0.75rem;
  }

  .search-form {
    width: 100%;
    padding: 0.35rem 0.6rem;
  }

  .search-form input {
    font-size: 0.85rem;
  }

  .social-links {
    gap: 0.5rem;
  }

  .social-links a {
    width: 35px;
    height: 35px;
  }

  .hero-slider {
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
  }

  .hero-content {
    padding: 1rem;
    width: 100%;
  }

  .hero-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .hero-description {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    max-width: 100%;
  }

  .hero-category {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    margin-bottom: 0.5rem;
  }

  .hero-meta {
    gap: 0.75rem;
    font-size: 0.75rem;
  }

  .hero-controls {
    bottom: 10px;
    right: 10px;
    gap: 0.5rem;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .hero-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    display: flex;
    flex-direction: column;
  }

  .card-image {
    padding-top: 56.25%;
  }

  .card-body {
    padding: 0.9rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-category {
    font-size: 0.75rem;
  }

  .card-excerpt {
    display: none;
  }

  .card-footer {
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.7rem;
    padding-top: 0.75rem;
  }

  .section-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    border-bottom-width: 2px;
  }

  .badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .sidebar-widget {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }

  .widget-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .newsletter-form {
    gap: 0.75rem;
  }

  .newsletter-form input,
  .newsletter-form button {
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .categories-list li {
    padding: 0.6rem 0;
  }

  .categories-list a {
    font-size: 0.9rem;
  }

  .categories-count {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .tags-cloud {
    gap: 0.5rem;
  }

  .tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .post-title {
    font-size: 1.4rem;
  }

  .post-featured-image {
    height: 200px;
    margin-bottom: 1.5rem;
  }

  .post-meta {
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .post-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .post-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
  }

  .breadcrumbs {
    font-size: 0.8rem;
    gap: 0.3rem;
  }

  .social-share {
    gap: 0.5rem;
    padding: 1.5rem 0;
    margin: 1.5rem 0;
  }

  .share-title {
    font-size: 0.9rem;
    margin-right: 0;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .share-buttons {
    gap: 0.5rem;
  }

  .share-button {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .comment-avatar {
    width: 38px;
    height: 38px;
  }

  .comment-header {
    gap: 0.75rem;
  }

  .comment-author {
    font-size: 0.95rem;
  }

  .comment-body {
    font-size: 0.9rem;
  }

  .comment-form {
    padding: 1rem;
  }

  .comment-form-title {
    font-size: 1.05rem;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination a,
  .pagination span {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .filter-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .page-404-number {
    font-size: 3.5rem;
  }

  .page-404 h1 {
    font-size: 1.4rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-newsletter {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-newsletter h3 {
    font-size: 1rem;
  }

  .footer-newsletter-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-newsletter-form input,
  .footer-newsletter-form button {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .footer-bottom {
    gap: 0.75rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
    width: 100%;
  }

  .footer-links {
    gap: 1rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .trending-number {
    font-size: 1.1rem;
    min-width: 35px;
  }

  .trending-image {
    width: 45px;
    height: 45px;
  }

  .trending-title {
    font-size: 0.85rem;
  }

  .trending-date {
    font-size: 0.75rem;
  }

  .card-list {
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .card-list-image {
    width: 100%;
    height: 150px;
  }

  .card-list-body {
    padding: 0.75rem;
  }

  .card-list-title {
    font-size: 0.95rem;
  }

  .card-list-meta {
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ads-placeholder {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  body.sidebar-open .sidebar {
    display: block !important;
  }

  body.sidebar-closed .sidebar {
    display: none !important;
  }
}

/* Utilities for responsive hiding */
@media (max-width: 768px) {
  .hide-tablet {
    display: none !important;
  }

  .show-tablet {
    display: block !important;
  }
}

@media (max-width: 479px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-image img,
  .post-featured-image img,
  .hero-slide img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark Mode Support (future) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-light: #1a1a1a;
    --color-text: #f0f0f0;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .social-links a,
  .share-button {
    min-width: 44px;
    min-height: 44px;
  }

  .btn {
    min-height: 44px;
  }

  .pagination a {
    min-width: 44px;
    min-height: 44px;
  }
}
