/*
Theme Name: Digital Life Box
Theme URI: https://yoursite.com/digital-life-box/
Author: Your Name
Author URI: https://yoursite.com/
Description: Digital Life Box is a modern custom WordPress theme with vibrant colors and a clean design.
Version: 1.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digital-life-box
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Reset & Base Styles */
html {
    font-size: 16px;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #060E1A;
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.35rem;
    color: #FFFFFF;
    font-weight: 900;
}

h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
}

h4 {
    font-size: 1.25rem;
    color: #3E3E3E;
    font-weight: 500;
}

h5 {
    font-size: 3rem;
    font-weight: 600;
}

h6 {
    font-size: 1.2rem;
    color: #3E3E3E;
    font-weight: 500;
}

p {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.body1 {
    font-size: 1.25rem;
}

.body2 {
    font-size: 0.876em;
}

a {
    color: #9747FF;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #7230C7;
    text-decoration: underline;
}

/* Colors */
.bg-primary {
    background-color: #140B24;
}

.bg-white {
    background-color: #FFFFFF;
}

.text-primary {
    color: #060E1A;
}

.text-secondary {
    color: #3E3E3E;
}

.text-tertiary {
    color: #FFFFFF;
}

.text-gray {
    color: #405261;
}

/* Primary Colors */
.primary-main {
    color: #AEC90B;
}

.primary-medium {
    color: #95C21F;
}

.primary-light {
    color: #74C90B;
}

/* Secondary Colors */
.secondary-main {
    color: #9747FF;
}

.secondary-light {
    color: #7230C7;
}

.secondary-dark {
    color: #400D62;
}

/* Gradients */
.gradient-primary {
    background: linear-gradient(270deg, #AEC90B 0%, #74C90B 100%);
}

.gradient-secondary {
    background: linear-gradient(90deg, #C56DFF 0%, #831BC8 68.5%, #AE0AA9 100%);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 50px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: #FFFFFF;
    background: linear-gradient(270deg, #AEC90B 0%, #74C90B 100%);
}

.btn-primary:hover {
    opacity: 0.9;
    text-decoration: none;
}

.btn-secondary {
    color: #FFFFFF;
    background: linear-gradient(90deg, #C56DFF 0%, #831BC8 68.5%, #AE0AA9 100%);
}

.btn-secondary:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Containers and Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
    margin-left: -1rem;
}

.col {
    position: relative;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #FFFFFF;
    background-clip: border-box;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 20px 0px rgba(166, 166, 166, 0.25);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Header */
.site-header {
    padding: 1rem 0;
    background-color: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #3E3E3E;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-right: 1.5rem;
}

.main-navigation a {
    color: #060E1A;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #9747FF;
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    background-color: #140B24;
    color: #FFFFFF;
}

/* Responsive breakpoints from the theme object */
@media (min-width: 600px) {
    .col-sm {
        flex-basis: 0;
        flex-grow: 1;
    }
}

@media (min-width: 900px) {
    .col-md {
        flex-basis: 0;
        flex-grow: 1;
    }
}

@media (min-width: 1280px) {
    .col-lg {
        flex-basis: 0;
        flex-grow: 1;
    }
}

@media (min-width: 1537px) {
    .col-xl {
        flex-basis: 0;
        flex-grow: 1;
    }
}

/* Responsive typography */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    h4 {
        font-size: 0.8rem;
    }
    
    h6 {
        font-size: 1rem;
    }
    
    p {
        font-size: 1.15rem;
    }
    
    .body1 {
        font-size: 1rem;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    h6 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 1.25rem;
    }
}

@media (min-width: 901px) and (max-width: 1280px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    h6 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 1.3rem;
    }
    
    .body1 {
        font-size: 1.15rem;
    }
}

@media (min-width: 1920px) {
    h1 {
        font-size: 3.75rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .body2 {
        font-size: 1rem;
    }
}

/* WordPress Specific Classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption img {
    display: block;
    margin: 0;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    padding: 0.5rem;
    color: #3E3E3E;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.gallery-item {
    padding: 0.5rem;
}

.gallery-caption {
    display: block;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.sticky {
    display: block;
    padding: 1rem;
    background-color: rgba(64, 13, 98, 0.2);
    border-radius: 10px;
}

.bypostauthor {
    display: block;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #060E1A;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
