/*!
Theme Name: Links Cleaner
Description: Clean up URL lists easily.
Version: 1.0.0
*/

/* Reset & Basic Defaults */
html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
form,
label,
article,
aside,
figure,
footer,
header,
menu,
nav,
section {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
}

html {
    line-height: 1;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
    display: block;
}

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Typography */
body {
    min-height: 100%;
    height: 100%;
    font-family: "Open Sans", sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    background: #f9f9f9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
}

h1 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.75em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

h3 {
    font-size: 1.5em;
    font-weight: bold;
}

h4 {
    font-size: 1.125em;
}

p {
    font-size: 1em;
    padding: 0.625em 0;
}

a {
    font-size: 1em;
    color: #4eaacc;
    text-decoration: none;
}

a:hover {
    color: #28718c;
}

/* Grid System */
.grid {
    *zoom: 1;
    max-width: 1200px;
    padding-left: 1em;
    padding-right: 1em;
    margin-left: auto;
    margin-right: auto;
}

.grid:before,
.grid:after {
    content: "";
    display: table;
    clear: both;
}

.row {
    *zoom: 1;
    width: 100%;
    overflow: hidden;
}

.row:before,
.row:after {
    content: "";
    display: table;
    clear: both;
}

[class*='col-'] {
    float: left;
    min-height: 1px;
    padding: 1em;
}

.col-1-1 {
    width: 100%;
}

.col-1-2 {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.375em 0.75em;
    margin-bottom: 0.625em;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.42857143;
    text-align: center;
    white-space: normal;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 0.4375em;
    text-transform: uppercase;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #f60;
    border-color: #f60;
}

.btn-primary:hover {
    background-color: #E55F06;
    color: #FFF;
}

.btm-sucks {
    color: #fff;
    background-color: #058DC7;
    border-color: #058DC7;
}

.btm-sucks:hover {
    background-color: #ffffff;
    color: #058DC7;
}

/* Sections & Cleaner Elements */
section {
    padding: 2em 0;
}

h4.section {
    border-bottom: 1px solid #CCC;
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding: 0.5em 0.5em 0.5em 1em;
    text-transform: uppercase;
}

section#cleaner {
    padding: 2em 0;
}

section#cleaner .description {
    padding: 0 0 1em;
}

section#cleaner textarea {
    width: 100%;
    padding: 1em;
    margin: 1em 0;
    outline: none;
    box-sizing: border-box;
    border: 1px solid #CCC;
    background: #FFF;
    font-family: "Open Sans", sans-serif;
    font-size: 0.875em;
    min-height: 20em;
}

#commands {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1em;
}

#commands button {
    width: 100%;
    margin: 0 !important;
    float: none;
    box-sizing: border-box;
}

@media (min-width: 49em) {
    #commands button.col-1-2 {
        width: calc(50% - 7.5px);
    }

    #commands button.col-1-1 {
        width: 100%;
    }
}

/* Responsive Adjustments */
@media (min-width: 49em) {
    .grid {
        padding-left: 2em;
        padding-right: 2em;
    }

    .col-1-1 {
        width: 100%;
    }

    .col-1-2 {
        width: 50%;
    }

    .btn {
        width: auto;
    }
}

@media (min-width: 59em) {
    .col-1-1 {
        width: 100%;
    }

    .col-1-2 {
        width: 50%;
    }

    .btn {
        margin-bottom: 0;
        width: auto;
    }
}

/* Page Wrapper & Sticky Ads */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
}

.ad-banner {
    position: sticky;
    top: 20px;
    width: 250px;
    height: auto;
    display: none;
    /* hidden by default */
    flex-shrink: 0;
}

.ad-banner img {
    width: 100%;
    height: auto;
}

/* Let the center container shrink slightly to make room on laptops */
.page-wrapper .container {
    flex: 1;
    min-width: 300px;
}

/* Display banners natively on any standard desktop/laptop monitor (1200px width+) */
@media (min-width: 1200px) {
    .ad-banner {
        display: block;
    }
}

/* Header */
#site-header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 5px 0;
    margin-bottom: 15px;
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.site-logo {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    color: #002B5B; /* Navy Blue */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.site-logo i {
    font-size: 0.9em;
}

.site-logo:hover {
    color: #001533; /* Darker Navy on hover */
}