/*
Theme Name: RepairLoader Custom
Theme URI: https://www.repairloader.com/blog/
Description: Custom WordPress theme for RepairLoader blog with Materialize CSS styling
Author: RepairLoader
Version: 1.0
License: GPL v2 or later
Text Domain: repairloader-custom
*/

/* Import Materialize CSS */
@import url('https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css');

/* Import Material Icons */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Reset and Base Styles */
html {
    font-size: 62.5%;
    overflow-y: scroll;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #444444;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 96rem;
    width: 96rem;
    margin: 0 auto;
}

@media only screen and (max-width: 992px) {
    .container {
        width: 85%;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #444444;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 30px;
    font-size: 3.0rem;
    line-height: 36px;
    line-height: 3.6rem;
    margin-bottom: 16px;
    margin-bottom: 1.6rem;
}

h2 {
    font-size: 24px;
    font-size: 2.4rem;
    line-height: 36px;
    line-height: 3.6rem;
    margin-bottom: 12px;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 18px;
    font-size: 1.8rem;
    line-height: 24px;
    line-height: 2.4rem;
    margin-bottom: 8px;
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 16px;
    font-size: 1.6rem;
    line-height: 20px;
    line-height: 2.0rem;
    margin-bottom: 8px;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Links */
a {
    color: #cc0000;
    text-decoration: none;
}

a:hover,
a:focus {
    color: red;
}

p a {
    border-bottom: 1px dotted;
}

/* Navigation Override */
nav {
    background-color: #b71c1c !important;
    height: 64px;
    line-height: 64px;
}

nav .nav-wrapper {
    position: relative;
    height: 100%;
}

nav .brand-logo {
    position: absolute;
    color: #fff;
    display: inline-block;
    font-size: 2.1rem;
    padding: 0;
}

nav .brand-logo img {
    height: 100%;
    max-height: 64px;
    margin: auto;
    vertical-align: middle;
}

nav ul a {
    color: #ffffff;
    font-size: 1.4rem;
}

nav ul a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

nav ul li.active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Search Banner */
.search-banner {
    background-color: #f5f5f5;
    padding: 20px 0;
}

.search-heading {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #444444;
}

/* Main Content */
#mainBody {
    min-height: 600px;
}

.main-content {
    padding: 3.2rem 0;
}

/* Cards */
.card {
    border-radius: 0.3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px 2px rgba(0,0,0,0.14), 0 2px 12px 2px rgba(0,0,0,0.12), 0 4px 4px -2px rgba(0,0,0,0.2);
}

.card .card-content {
    padding: 2rem;
}

.card-title {
    font-size: 2.4rem !important;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.card-title a {
    color: #444444;
}

.card-title a:hover {
    color: #cc0000;
}

/* Post Meta */
.post-meta,
.entry-meta {
    color: #aaaaaa;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.post-meta a,
.entry-meta a {
    color: #cc0000;
}

.post-meta a:hover,
.entry-meta a:hover {
    color: red;
    text-decoration: underline;
}

/* Buttons */
.btn,
.btn-large {
    background-color: #cc0000 !important;
    color: white !important;
    border-radius: 0.3rem;
    text-transform: none;
    font-size: 1.4rem;
}

.btn:hover,
.btn-large:hover {
    background-color: red !important;
}

.btn:focus,
.btn-large:focus {
    background-color: red !important;
}

/* Categories and Tags */
.chip,
.cat-links a,
.tags-links a {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    padding: 0 12px;
    margin: 0 5px 5px 0;
    background-color: #f5f5f5;
    border-radius: 16px;
    font-size: 1.3rem;
    color: #444444;
}

.chip:hover,
.cat-links a:hover,
.tags-links a:hover {
    background-color: #e0e0e0;
    color: #cc0000;
}

/* Sidebar */
.widget {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #444444;
    margin-bottom: 1.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #cc0000;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #444444;
}

.widget a:hover {
    color: #cc0000;
}

/* Footer */
footer.page-footer {
    background-color: #b71c1c !important;
    color: white;
    margin-top: 0;
    padding-top: 3rem;
}

footer h5 {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.6rem;
}

footer p,
footer li,
footer .white-text {
    color: white !important;
}

footer a {
    color: #e0e0e0 !important;
}

footer a:hover {
    color: white !important;
    text-decoration: underline;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    padding: 0.4rem 0;
}

.footer-copyright {
    background-color: rgba(0,0,0,0.2);
    padding: 15px 0;
}

/* Social buttons */
.btn-floating {
    background-color: #e57373 !important;
}

.btn-floating:hover {
    background-color: #ef5350 !important;
}

/* Payment methods */
.payment-methods {
    margin-top: 15px;
}

/* Comments */
.comments-area {
    margin-top: 3.2rem;
    padding-top: 3.2rem;
    border-top: 1px solid #e0e0e0;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.6rem 0;
}

.comment-author {
    font-weight: bold;
    color: #444444;
}

.comment-metadata {
    font-size: 1.2rem;
    color: #aaaaaa;
    margin-left: 1rem;
}

.comment-content {
    margin-top: 1rem;
    line-height: 1.5;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
    border: 1px solid #ddd;
    padding: 0.8rem;
    border-radius: 0.3rem;
    width: 100%;
    font-size: 1.4rem;
    color: #444444;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: #cc0000;
    outline: none;
    box-shadow: 0 0 0 1px #cc0000;
}

label {
    font-size: 1.4rem;
    color: #444444;
    font-weight: normal;
}

/* Pagination */
.pagination {
    margin: 3.2rem 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    margin: 0 0.4rem;
    background-color: #f5f5f5;
    color: #444444;
    border-radius: 0.3rem;
    text-decoration: none;
}

.page-numbers:hover {
    background-color: #e0e0e0;
    color: #cc0000;
}

.page-numbers.current {
    background-color: #cc0000;
    color: white;
}

/* Single Post */
.single-post {
    background: white;
    margin-bottom: 3rem;
    border-radius: 0.3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.single-post h1 {
    font-size: 3.6rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.single-post .post-content {
    font-size: 1.6rem;
    line-height: 1.8;
}

.single-post .post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #cc0000;
}

.single-post .post-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.8rem;
}

.single-post .post-content li {
    margin-bottom: 0.8rem;
}

.single-post .post-content blockquote {
    border-left: 4px solid #cc0000;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666666;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.3rem;
    margin: 2rem 0;
}

/* WordPress Core */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 1.2rem;
    color: #666666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Responsive */
@media only screen and (max-width: 920px) {
    body {
        font-size: 13px;
        font-size: 1.3rem;
    }
    
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2.0rem;
    }
    
    .single-post h1 {
        font-size: 2.8rem;
    }
}

@media only screen and (max-width: 600px) {
    .container {
        width: 95%;
    }
    
    nav .brand-logo {
        font-size: 1.8rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .card .card-content {
        padding: 1.5rem;
    }
    
    .single-post {
        padding: 2rem;
    }
}

/* Utility Classes */
.section-title {
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #cc0000;
    color: #444444;
}

.center-align {
    text-align: center;
}

.grey-text {
    color: #9e9e9e !important;
}

.text-darken-1 {
    color: #757575 !important;
}

.text-lighten-4 {
    color: #f5f5f5 !important;
}

.text-lighten-3 {
    color: #e0e0e0 !important;
}