/*
Theme Name: Tips and Trick Make Up For Girls
Theme URI: https://example.com
Author: Admin
Author URI: https://example.com
Description: Tema WordPress custom untuk berbagi tips, trik, rekomendasi, dan informasi seputar makeup untuk perempuan dengan tampilan rapi, menarik, dan fokus pada konten visual.
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tips-trick-makeup
Domain Path: /languages/
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   RESET & TYPOGRAPHY
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

a {
  color: #e91e63;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #c2185b;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', sans-serif;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #222;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  padding: 40px 0;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
  color: white;
  padding: 30px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header a {
  color: white;
}

.site-header a:hover {
  color: #f0f0f0;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  flex: 1;
}

.site-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
  color: white;
}

.site-title a {
  color: white;
  text-decoration: none;
}

.site-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-top: 5px;
}

.site-search {
  flex: 1;
  display: flex;
  gap: 10px;
}

.search-form {
  display: flex;
  gap: 5px;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
}

.search-form button {
  padding: 10px 20px;
  background-color: white;
  color: #e91e63;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.search-form button:hover {
  background-color: #f0f0f0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-nav {
  margin-top: 20px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.site-nav a {
  color: white;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.site-nav a:hover,
.site-nav a.current {
  border-bottom-color: white;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.main-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.primary-content {
  grid-column: 1;
}

.sidebar {
  grid-column: 2;
}

@media (max-width: 768px) {
  .main-area {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    grid-column: 1;
  }
}

/* ============================================
   POSTS & ARTICLES
   ============================================ */

.posts-list {
  list-style: none;
}

.post-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.post-featured-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #e0e0e0;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 25px;
}

.post-title {
  font-size: 1.6rem;
  margin: 0 0 15px 0;
  color: #222;
}

.post-title a {
  color: #222;
}

.post-title a:hover {
  color: #e91e63;
}

.post-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-excerpt {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  background-color: #e91e63;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #c2185b;
  color: white;
}

/* Single Post */

.single-post {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.single-post-header {
  margin-bottom: 30px;
  border-bottom: 2px solid #e91e63;
  padding-bottom: 20px;
}

.single-post-title {
  font-size: 2rem;
  color: #222;
  margin: 0 0 15px 0;
}

.single-featured-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  margin: 30px 0;
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
}

.post-body p {
  margin-bottom: 15px;
}

.post-body img {
  margin: 20px 0;
  border-radius: 8px;
}

/* ============================================
   PAGES
   ============================================ */

.page-content {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.page-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 30px;
  border-bottom: 3px solid #e91e63;
  padding-bottom: 15px;
}

.page-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.page-body img {
  margin: 20px 0;
  border-radius: 8px;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */

.search-header {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.search-title {
  font-size: 1.8rem;
  color: #222;
  margin: 0;
}

.no-results {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  text-align: center;
}

.no-results h2 {
  color: #e91e63;
}

.no-results p {
  color: #666;
  font-size: 1.05rem;
}

/* ============================================
   COMMENTS
   ============================================ */

.comments-area {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e91e63;
}

.comments-title {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 20px;
}

.comment-list {
  list-style: none;
  margin-bottom: 30px;
}

.comment-list .children {
  list-style: none;
  margin-left: 30px;
  margin-top: 15px;
}

.comment {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #e91e63;
}

.comment-author {
  font-weight: bold;
  color: #222;
  margin-bottom: 5px;
}

.comment-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 10px;
}

.comment-text {
  color: #555;
  line-height: 1.6;
}

.comment-reply-link {
  display: inline-block;
  margin-top: 10px;
  color: #e91e63;
  font-weight: 500;
}

.comment-form-wrapper {
  background: white;
  border-radius: 8px;
  padding: 25px;
  border: 2px solid #e91e63;
}

.comment-form-wrapper h3 {
  color: #222;
  margin-top: 0;
}

.comment-form-field {
  margin-bottom: 15px;
}

.comment-form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.comment-form-field input[type="text"],
.comment-form-field input[type="email"],
.comment-form-field input[type="url"],
.comment-form-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.comment-form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.comment-submit-wrapper {
  margin-top: 20px;
}

.comment-form-field [type="submit"],
.submit {
  background-color: #e91e63;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.comment-form-field [type="submit"]:hover,
.submit:hover {
  background-color: #c2185b;
}

/* ============================================
   SIDEBAR
   ============================================ */

.widget {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 1.2rem;
  color: #222;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e91e63;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: #e91e63;
  font-weight: 500;
}

.widget a:hover {
  color: #c2185b;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #333;
  color: white;
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-widget {
  padding: 0;
}

.footer-widget-title {
  font-size: 1.1rem;
  color: #e91e63;
  margin: 0 0 15px 0;
  font-weight: bold;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: 10px;
}

.footer-widget a {
  color: #ddd;
}

.footer-widget a:hover {
  color: #e91e63;
}

.footer-bottom {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  border-top: 1px solid #555;
  padding-top: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    gap: 15px;
  }

  .search-form {
    max-width: 100%;
  }

  .site-nav {
    gap: 15px;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .single-post {
    padding: 20px;
  }

  .page-content {
    padding: 20px;
  }

  .post-title {
    font-size: 1.3rem;
  }

  .single-featured-image {
    height: 250px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form input[type="search"],
  .search-form button {
    width: 100%;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }
}
