/**
 * City Guide Manager - Frontend Styles
 * Tour, Guide, Event, and Testimonial Cards
 * Version: 1.0.0
 */

/* ====================================
   GRID SYSTEMS
   ==================================== */
.cgm-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.cgm-grid.columns-1 { grid-template-columns: 1fr; }
.cgm-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.cgm-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.cgm-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

/* ====================================
   BASE CARD STYLES
   ==================================== */
.cgm-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.cgm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cgm-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cgm-card-title {
    margin: 0 0 10px;
    font-size: 1.2em;
    line-height: 1.4;
}

.cgm-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cgm-card-title a:hover {
    color: #0066cc;
}

.cgm-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.cgm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.85em;
}

.cgm-meta-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

.cgm-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.cgm-card-location svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

.cgm-card-excerpt {
    color: #777;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* ====================================
   BUTTONS
   ==================================== */
.cgm-button {
    display: inline-block;
    padding: 8px 20px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.cgm-button:hover {
    background: #004c99;
}

.cgm-button-small {
    padding: 6px 16px;
    font-size: 0.85em;
}

/* ====================================
   TOUR CARDS
   ==================================== */
.cgm-tour-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cgm-tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.cgm-tour-card:hover .cgm-card-image img {
    transform: scale(1.05);
}

/* ====================================
   GUIDE CARDS
   ==================================== */
.cgm-guide-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cgm-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,102,204,0.15);
}

.cgm-circle-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 20px auto 0;
    overflow: hidden;
    border: 3px solid #0066cc;
}

.cgm-circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cgm-guide-card .cgm-card-content {
    padding: 20px;
    flex: 1;
}

.cgm-card-specialization {
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.cgm-card-languages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #666;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.cgm-card-languages svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

/* ====================================
   EVENT CARDS
   ==================================== */
.cgm-event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cgm-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.cgm-event-card .cgm-card-image {
    height: 180px;
}

.cgm-event-date {
    background: #0066cc;
    color: #fff;
    padding: 12px;
    text-align: center;
    margin: 0;
}

.cgm-event-day {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1;
}

.cgm-event-month {
    display: block;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cgm-event-card .cgm-card-title {
    margin: 0 0 12px;
}

.cgm-event-card .cgm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.cgm-event-card .cgm-button-small {
    margin-top: auto;
    align-self: flex-start;
}

/* ====================================
   TESTIMONIAL CARDS
   ==================================== */
.cgm-testimonial-grid {
    margin: 30px 0;
}

.cgm-testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.cgm-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,102,204,0.1);
}

.cgm-testimonial-card:before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4em;
    color: #0066cc;
    opacity: 0.15;
    font-family: serif;
    line-height: 1;
}

.cgm-testimonial-rating {
    margin-bottom: 15px;
    display: flex;
	justify-content: flex-end;
    gap: 3px;
}

.cgm-testimonial-rating svg {
    width: 16px;
    height: 16px;
}

.cgm-testimonial-text {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.cgm-testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
}

.cgm-testimonial-author strong {
    display: block;
    color: #333;
    font-size: 1em;
    margin-bottom: 5px;
}

.cgm-testimonial-position {
    display: block;
    color: #666;
    font-size: 0.85em;
}

.cgm-testimonial-tour {
    display: block;
    color: #0066cc;
    font-size: 0.8em;
    margin-top: 5px;
}

.cgm-testimonial-tour a {
    color: #0066cc;
    text-decoration: none;
}

.cgm-testimonial-tour a:hover {
    text-decoration: underline;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 992px) {
    .cgm-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cgm-grid.columns-2,
    .cgm-grid.columns-3,
    .cgm-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cgm-circle-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .cgm-grid.columns-2,
    .cgm-grid.columns-3,
    .cgm-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}