/**
 * ============================================================================
 * ARQUIVO: assets/css/responsive.css
 * DESCRIÇÃO: Estilos responsivos para mobile, tablet e desktop
 * ============================================================================
 */

/* ============================================================================
   TABLET (768px e acima)
   ============================================================================ */

@media (max-width: 768px) {
    /* Tipografia */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Hero */
    .hero {
        padding: 2.5rem 1.5rem;
    }

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

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

    /* Grid de Receitas */
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Navbar */
    .navbar-nav {
        padding-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }

    /* Recipe Info Grid */
    .recipe-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Recipe Title */
    .recipe-title {
        font-size: 2rem;
    }

    /* Sidebar */
    .sidebar {
        margin-top: 2rem;
    }

    /* Recipe Card */
    .recipe-card-img {
        height: 150px;
    }

    /* Recipe Featured Image */
    .recipe-featured-image {
        max-height: 350px;
    }

    /* Section Title */
    .recipe-section-title {
        font-size: 1.25rem;
    }

    /* Comments */
    .comment-item {
        padding: 1rem;
    }

    .comment-header {
        gap: 0.75rem;
    }

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

    /* Footer */
    footer {
        text-align: center;
    }

    footer .social-links {
        justify-content: center;
        margin-top: 1rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-sm {
        width: auto;
    }

    /* Cards */
    .card-body {
        padding: 1rem;
    }

    /* Modal */
    .modal-body {
        padding: 1.25rem;
    }
}

/* ============================================================================
   MOBILE (576px e abaixo)
   ============================================================================ */

@media (max-width: 576px) {
    /* Tipografia */
    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

    h5 {
        font-size: 0.95rem;
    }

    h6 {
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

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

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

    .hero .search-box {
        width: 100%;
    }

    .hero .search-box input,
    .hero .search-box button {
        width: 100%;
    }

    .hero .search-box .input-group {
        flex-direction: column;
    }

    .hero .search-box .input-group input {
        border-radius: 0.5rem !important;
    }

    .hero .search-box .input-group button {
        border-radius: 0.5rem !important;
        margin-top: 0.5rem;
    }

    /* Navbar */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-nav {
        padding-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        font-size: 0.95rem;
    }

    .navbar-nav .dropdown-menu {
        width: 100%;
        padding: 0.5rem 0;
    }

    /* Grid de Receitas */
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Recipe Card */
    .recipe-card {
        margin-bottom: 1rem;
    }

    .recipe-card-img {
        height: 200px;
    }

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

    .recipe-card-text {
        font-size: 0.85rem;
    }

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

    /* Recipe Detail */
    .recipe-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .recipe-summary {
        font-size: 1rem;
    }

    .recipe-featured-image {
        max-height: 250px;
        margin-bottom: 1.5rem;
    }

    .recipe-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .recipe-info-item {
        padding: 0.75rem;
    }

    .recipe-info-label {
        font-size: 0.75rem;
    }

    .recipe-info-value {
        font-size: 1rem;
    }

    /* Section Title */
    .recipe-section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    /* Ingredients and Steps */
    .ingredients-list li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }

    .preparation-steps li {
        padding: 1rem;
        padding-left: 2.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }

    .preparation-steps li:before {
        width: 1.75rem;
        height: 1.75rem;
        top: 1rem;
        left: 0.75rem;
        font-size: 0.9rem;
    }

    /* Sidebar */
    .sidebar {
        margin-top: 1.5rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    /* Comments */
    .comments-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

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

    .comment-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .comment-header {
        flex-direction: column;
        gap: 0.5rem;
    }

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

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

    .comment-date {
        font-size: 0.8rem;
    }

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

    .comment-form {
        padding: 1rem;
    }

    /* Forms */
    .form-control {
        padding: 0.65rem;
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .btn-sm {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        width: auto;
    }

    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Cards */
    .card-body {
        padding: 1rem;
    }

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

    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }

    /* Footer */
    footer {
        text-align: center;
        padding: 2rem 1rem;
    }

    footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    footer p,
    footer li {
        font-size: 0.9rem;
    }

    footer .social-links {
        gap: 1rem;
        justify-content: center;
        margin-top: 1rem;
    }

    footer .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Pagination */
    .pagination {
        font-size: 0.85rem;
    }

    .pagination .page-link {
        padding: 0.35rem 0.6rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }

    /* Modal */
    .modal-content {
        border-radius: 0.75rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    /* Table */
    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }

    /* Dropdown */
    .dropdown-menu {
        font-size: 0.9rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
    }

    /* Utilities */
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .my-2, .my-3, .my-4, .my-5 {
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .p-2, .p-3, .p-4, .p-5 {
        padding: 0.75rem !important;
    }

    .gap-2, .gap-3, .gap-4 {
        gap: 0.75rem !important;
    }

    /* Text alignment */
    .text-center {
        text-align: center;
    }

    /* Visibility */
    .d-none {
        display: none !important;
    }

    .d-block {
        display: block !important;
    }

    /* Flexbox */
    .d-flex {
        flex-wrap: wrap;
    }

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

    /* Grid */
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ============================================================================
   MUITO PEQUENO (320px e abaixo)
   ============================================================================ */

@media (max-width: 320px) {
    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1rem;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

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

    .recipe-info-grid {
        grid-template-columns: 1fr;
    }

    .recipe-section-title {
        font-size: 1rem;
    }

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

/* ============================================================================
   IMPRESSÃO
   ============================================================================ */

@media print {
    .navbar,
    .sidebar,
    .comment-form,
    .btn,
    footer,
    .recipe-card-actions,
    .social-links {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    .container-fluid {
        width: 100%;
    }

    .recipe-featured-image {
        max-width: 100%;
        height: auto;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black;
    }

    p {
        page-break-inside: avoid;
    }

    .recipe-section {
        page-break-inside: avoid;
    }
}