/*
Theme Name: My Custom Theme - Responsive Styles
Description: Responsive CSS for all devices
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 - Desktop (1200px and up)
2.0 - Laptop (992px to 1199px)
3.0 - Tablet (768px to 991px)
4.0 - Mobile (576px to 767px)
5.0 - Small Mobile (up to 575px)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 - Desktop (1200px and up)
--------------------------------------------------------------*/
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/*--------------------------------------------------------------
2.0 - Laptop (992px to 1199px)
--------------------------------------------------------------*/
@media (max-width: 1199px) {
    .entry-title {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/*--------------------------------------------------------------
3.0 - Tablet (768px to 991px)
--------------------------------------------------------------*/
@media (max-width: 991px) {
    /* Header */
    .site-header .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav {
        margin-left: 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    /* Content */
    .entry-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Sidebar */
    .widget-area {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    /* Footer */
    .footer-widgets .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .footer-widgets .col-lg-3:last-child {
        margin-bottom: 0;
    }
}

/*--------------------------------------------------------------
4.0 - Mobile (576px to 767px)
--------------------------------------------------------------*/
@media (max-width: 767px) {
    /* Global */
    body {
        font-size: 15px;
    }
    
    /* Header */
    .top-bar {
        display: none !important;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-description {
        font-size: 0.75rem;
    }
    
    /* Navigation */
    .navbar-search {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    /* Content */
    .site-content {
        padding: 1rem 0;
    }
    
    .entry-header {
        margin-bottom: 1.5rem;
    }
    
    .entry-title {
        font-size: 1.35rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    .entry-meta {
        font-size: 0.8rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .article-item {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Widgets */
    .widget {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    /* Comments */
    .comment {
        padding: 1rem;
    }
    
    .comment-author .avatar {
        width: 48px;
        height: 48px;
    }
    
    /* Footer */
    .footer-widgets {
        padding: 3rem 0;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
    
    .footer-menu li {
        display: block;
        margin: 0.5rem 0;
    }
    
    /* Pagination */
    .pagination {
        margin-top: 2rem;
    }
    
    .page-numbers {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        line-height: 45px;
        bottom: 15px;
        right: 15px;
    }
}

/*--------------------------------------------------------------
5.0 - Small Mobile (up to 575px)
--------------------------------------------------------------*/
@media (max-width: 575px) {
    /* Global */
    body {
        font-size: 14px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header */
    .site-title {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
    
    /* Content */
    .entry-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .page-title {
        font-size: 1.35rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }
    h4 { font-size: 1rem; }
    
    .page-header {
        padding: 1.5rem;
    }
    
    .article-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .more-link {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Meta */
    .entry-meta .posted-on,
    .entry-meta .byline,
    .entry-meta .cat-links {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    /* Images */
    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 1rem auto;
    }
    
    /* Widgets */
    .widget {
        padding: 0.875rem;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    /* Comments */
    .comments-title {
        font-size: 1.25rem;
    }
    
    .comment {
        padding: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .comment-author .avatar {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
    
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form textarea {
        font-size: 14px;
    }
    
    /* Footer */
    .footer-widgets {
        padding: 2rem 0;
    }
    
    .footer-bottom {
        padding: 1rem 0;
        font-size: 0.85rem;
    }
    
    .site-info,
    .footer-navigation {
        text-align: center !important;
    }
    
    /* 404 Page */
    .error-404 .page-title {
        font-size: 4rem;
    }
    
    /* Search Form */
    .search-form {
        flex-direction: column;
    }
    
    .search-form .search-field {
        border-radius: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .search-form .search-submit {
        border-radius: 0.25rem;
        width: 100%;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
        bottom: 10px;
        right: 10px;
        font-size: 0.875rem;
    }
}

/*--------------------------------------------------------------
Print Styles
--------------------------------------------------------------*/
@media print {
    .site-header,
    .site-footer,
    .widget-area,
    .navigation,
    .comments-area,
    .back-to-top,
    .no-print {
        display: none !important;
    }
    
    .site-content {
        margin: 0;
        padding: 0;
    }
    
    .entry-title,
    .page-title {
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}