/*
Theme Name: Tool Club
Theme URI: https://example.com/tool-club
Author: Your Name
Author URI: https://example.com
Description: A custom WordPress theme for the Tool Club website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tool-club
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    max-height: 60px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #007bff;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 20px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Search form */
.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search input[type="search"] {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.hero-search input[type="search"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.3);
}

/* Tool cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-image img {
    transform: scale(1.05);
}

.tool-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.tool-excerpt {
    color: #666;
    margin-bottom: 20px;
}

.tool-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tool-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Tool meta */
.tool-meta {
    margin-bottom: 15px;
    color: #666;
}

.tool-date {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.tool-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-categories a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.tool-categories a:hover {
    text-decoration: underline;
}

/* Category cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

/* Section titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #007bff;
}

/* Responsive design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .main-nav ul {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
