/*
 * Front-end Styles for Brand Toolkits Plugin
 */

/* =======================================
   General
   ======================================= */
body {
    font-family: sans-serif;
}
a {
    text-decoration: none;
    color: inherit;
}
.site-main {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.btk-archive-header, .btk-single-header {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.btk-archive-header h1, .btk-single-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}
.btk-archive-header p, .btk-single-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* =======================================
   Archive Page Grid & Cards
   ======================================= */
.btk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}
.btk-card {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}
.btk-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
}
.btk-typography h2 {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
}
.btk-tagline {
    font-size: 1rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.5;
}
.btk-color-palette-archive {
    display: flex;
    width: 100%;
}
.color-swatch-archive {
    flex-grow: 1;
    height: 150px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.color-swatch-archive:hover {
    transform: scale(1.1);
    z-index: 10;
}
.btk-card-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    border-top: 1px solid #eee;
}
.btk-card-footer a {
    color: #a0a0a0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.btk-card-footer a:hover {
    color: #555;
}
.btk-card-footer .fa-heart.fas {
    color: #d9534f;
}
.btk-card-footer .favorite-count {
    color: #a0a0a0;
    font-size: 1rem;
    margin-left: 0.25rem;
}

/* =======================================
   Single Page Sections
   ======================================= */
.btk-single-container {
    max-width: 1200px;
    margin: 2rem auto;
    box-shadow: none;
    overflow: hidden;
    background-color: #fff;
    border-radius: 0;
}
.btk-main-header {
    text-align: center;
    padding: 3rem 1rem;
    background-color: transparent !important;
}
.btk-brand-name {
    font-size: 3rem;
    margin: 0;
    line-height: 1;
}
.btk-tagline {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}
.btk-section {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}
.btk-section:last-child {
    border-bottom: none;
}
.btk-section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}
.btk-section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #333;
    margin: 0.5rem auto 0;
}
.btk-font-samples {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.btk-font-sample-item {
    padding: 2rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.btk-font-name-copy {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btk-font-name-copy i {
    color: inherit;
    font-size: 1.2rem;
}
.btk-sample-text p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
}
.btk-color-list-single {
    display: flex;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.btk-color-item-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    min-width: 80px;
    cursor: pointer;
    padding: 1rem 0.5rem;
    transition: transform 0.2s ease-in-out;
}
.btk-color-item-single:hover {
    transform: translateY(-5px);
    z-index: 10;
}
.hex-code {
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
}
.btk-half-column {
    width: 100%;
}
@media (min-width: 768px) {
    .btk-section .btk-half-column {
        width: 48%;
    }
    .btk-section.split {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
    }
}
.btk-footer-icons {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #f0f0f0;
}
.btk-footer-icons a {
    color: #a0a0a0;
    margin: 0 1rem;
    font-size: 1.5rem;
}
.btk-footer-icons a:hover {
    color: #555;
}
.btk-footer-icons .favorite-count {
    font-size: 1rem;
    color: #a0a0a0;
}
.btk-back-to-archive-btn {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}
.btk-back-to-archive-btn i {
    margin-right: 0.5rem;
}
.copied-message {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}