/*
Theme Name: TDF Minimal Theme
Description: Lightweight WordPress theme designed specifically for Troy Davies Fitness plugins
Version: 1.0.0
Author: Sean Shepley
Author URI: https://troydaviesfitness.com
Text Domain: tdf-minimal
License: GPL v2 or later
*/

/* CSS Reset and Base Styles */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.6;
}

/* Minimal Container - No Width Restrictions */
.tdf-theme-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Header */
.tdf-header {
    background: #1e293b;
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tdf-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tdf-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.tdf-site-title a {
    color: white;
    text-decoration: none;
}

.tdf-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.tdf-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tdf-nav a:hover {
    color: #60a5fa;
}

/* Main Content Area - Full Width */
.tdf-main {
    width: 100%;
    min-height: calc(100vh - 140px);
}

/* Page Content - No Container Restrictions */
.tdf-content {
    width: 100%;
}

/* Remove WordPress Default Containers */
.entry-content,
.post-content,
.page-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer */
.tdf-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 2rem 0;
    margin-top: 3rem;
}

.tdf-footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    color: #6b7280;
}

.tdf-footer-inner p {
    margin: 0;
    font-size: 0.875rem;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .tdf-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .tdf-header {
        top: 46px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: #1e293b;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem 0;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem auto;
}

.alignwide {
    width: 100%;
    max-width: none;
}

.alignfull {
    width: 100vw;
    max-width: none;
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
}

/* WordPress Blocks Support */
.wp-block-group {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tdf-header-inner {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .tdf-nav {
        gap: 1rem;
    }
    
    .tdf-footer-inner {
        padding: 0 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}