/* public/css/style.css */

/* Base Styles */

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #3f83f8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */

header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

header img {
    height: 40px;
}

header nav a {
    margin-left: 20px;
    font-weight: 500;
}

/* Footer */

footer {
    background-color: #f9f9f9;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
}

footer p {
    margin: 0;
    color: #777;
}

footer nav a {
    margin: 0 10px;
    color: #777;
}

/* Main Content */

.main-content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}

.main-content .content {
    width: 100%;
    padding-right: 0;
}

@media (min-width: 992px) {
    .main-content .content {
        width: 75%;
        padding-right: 30px;
    }
}

.main-content .sidebar {
    width: 100%;
    margin-top: 30px;
}

@media (min-width: 992px) {
    .main-content .sidebar {
        width: 25%;
        margin-top: 0;
    }
}

/* Blog Posts */

.post {
    margin-bottom: 40px;
}

.post h1,
.post h2,
.post h3,
.post h4,
.post h5,
.post h6 {
    margin: 20px 0 10px;
    line-height: 1.2;
}

.post h1 {
    font-size: 2.5rem;
}

.post h2 {
    font-size: 2rem;
}

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

.post h4 {
    font-size: 1.5rem;
}

.post h5 {
    font-size: 1.25rem;
}

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

.post p {
    margin: 0 0 15px;
}

.post img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.post blockquote {
    border-left: 4px solid #3f83f8;
    padding-left: 15px;
    color: #555;
    margin: 20px 0;
    font-style: italic;
}

.post ul,
.post ol {
    margin: 15px 0;
    padding-left: 40px;
}

.post li {
    margin-bottom: 10px;
}

.post code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 90%;
}

.post pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 3px;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 90%;
    margin: 15px 0;
}

.post table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post table th,
.post table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.post table th {
    background-color: #f9f9f9;
}

/* Buttons */

.button,
button,
input[type="submit"] {
    display: inline-block;
    background-color: #3f83f8;
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #346bb3;
}

/* Forms */

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 15px;
    font-size: 1rem;
}

form textarea {
    min-height: 150px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Sidebar */

.sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.sidebar .featured-post {
    margin-bottom: 20px;
}

.sidebar .featured-post h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.sidebar .featured-post p {
    font-size: 0.9rem;
    color: #555;
}

/* Pagination */

.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    color: #3f83f8;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination a:hover {
    background-color: #f4f4f4;
}

.pagination .active span {
    background-color: #3f83f8;
    color: #fff;
    border-color: #3f83f8;
}

/* Search Form */

.search-form {
    display: flex;
}

.search-form input[type="text"] {
    flex-grow: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Social Sharing */

.social-sharing {
    margin: 30px 0;
}

.social-sharing h3 {
    margin-bottom: 15px;
}

.social-sharing a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    width: 40px;
    height: 40px;
    background-color: #3f83f8;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
}

.social-sharing a:hover {
    background-color: #346bb3;
}

.social-sharing a.facebook {
    background-color: #3b5998;
}

.social-sharing a.twitter {
    background-color: #1da1f2;
}

.social-sharing a.linkedin {
    background-color: #0077b5;
}

/* Comments Section */

#disqus_thread {
    margin-top: 50px;
}

/* Responsive Images */

.responsive-img {
    max-width: 100%;
    height: auto;
}

/* Responsive Embeds */

.embed-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background-color: #f4f4f4;
    margin-bottom: 20px;
}

.embed-responsive iframe,
.embed-responsive object,
.embed-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Miscellaneous */

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 30px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 5px; }
.pt-2 { padding-top: 10px; }
.pt-3 { padding-top: 15px; }
.pt-4 { padding-top: 20px; }
.pt-5 { padding-top: 30px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 5px; }
.pb-2 { padding-bottom: 10px; }
.pb-3 { padding-bottom: 15px; }
.pb-4 { padding-bottom: 20px; }
.pb-5 { padding-bottom: 30px; }

.hidden {
    display: none;
}

/* Media Queries */

@media (max-width: 991px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 15px;
    }

    .search-form {
        margin-top: 15px;
        width: 100%;
    }

    .search-form input[type="text"] {
        width: 100%;
    }

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

    .main-content .content,
    .main-content .sidebar {
        width: 100%;
        padding-right: 0;
    }

    .main-content .sidebar {
        margin-top: 30px;
    }
}
